Fixed CR issues for Remove-TypeData

This commit is contained in:
TingLiu6 2016-05-11 19:46:56 -07:00
parent 0b97247cbf
commit cd871b97a3

View File

@ -46,21 +46,18 @@
$a.Yada | Should be 3
$a.Yoda | Should Be 3
Remove-TypeData -Path $XMLFile1
$a = 1..3
$a.Yada | Should BeNullOrEmpty
$a.Yoda | Should Be 3
#clean up
Remove-TypeData -Path $XMLFile2
Remove-Item $XMLFile1 -ErrorAction SilentlyContinue
Remove-Item $XMLFile2 -ErrorAction SilentlyContinue
}
It "Remove Type File In Initial Session State File Not In Cache" {
try
{
Remove-TypeData -Path "fakefile" -ErrorAction Stop
Throw "TypePathException"
Throw "OK"
}
catch
{