Fix Remove-TypeData runspace isolation

Responding to PR review.
This commit is contained in:
Andrew Schwartzmeyer 2016-05-26 10:36:22 -07:00
parent 6da104eaa6
commit 05fc323762

View file

@ -48,7 +48,7 @@
It "Remove With Pipe line Input Pass Type Shortcut String" {
$null = $ps.AddScript("Update-TypeData -MemberType NoteProperty -MemberName TestNote -Value TestNote -TypeName int").Invoke()
$ps.Commands.Clear()
$null = $ps.AddScript("(Get-TypeData System.Int32).TypeName").Invoke() | Should Be System.Int32
$ps.AddScript("(Get-TypeData System.Int32).TypeName").Invoke() | Should Be System.Int32
$ps.Commands.Clear()
$null = $ps.AddScript("'int' | Remove-TypeData").Invoke()
$ps.HadErrors | Should be $false