mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Merge pull request #1043 from PowerShell/andschwa/typedata-pr
Fix Remove-TypeData runspace isolation
This commit is contained in:
commit
ef25c4e60d
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user