Files
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Item.Tests.ps1
T
James Truher 9d1c998287 Filling test gaps (issue 2022) - this replaces PR 1834
This replaces PR 1834 from the private fork I had
2016-08-22 14:56:04 -07:00

12 lines
401 B
PowerShell

Describe "Clear-Item tests" -Tag "CI" {
BeforeAll {
${myClearItemVariableTest} = "Value is here"
}
It "Clear-Item can clear an item" {
$myClearItemVariableTest | Should be "Value is here"
Clear-Item variable:myClearItemVariableTest
test-path variable:myClearItemVariableTest | should be $true
$myClearItemVariableTest | Should BeNullOrEmpty
}
}