diff --git a/test/csharp/test_Runspace.cs b/test/csharp/test_Runspace.cs index fae68418f..687a7afc0 100644 --- a/test/csharp/test_Runspace.cs +++ b/test/csharp/test_Runspace.cs @@ -62,55 +62,6 @@ namespace PSTests } } - [Fact] - public void TestRunspaceWithPowerShellAndHost() - { - Listener listener = new Listener("", false, false); - MyHost myHost = new MyHost(listener); - using (var runspace = RunspaceFactory.CreateRunspace(myHost)) - { - runspace.Open(); - - using (PowerShell powerShell = PowerShell.Create()) - { - powerShell.Runspace = runspace; - - powerShell.AddScript(script); - - int objCount = 0; - foreach (var result in powerShell.Invoke()) - { - ++objCount; - Assert.NotNull(result); - } - Assert.Equal(count, objCount); - } - - runspace.Close(); - } - } - - [Fact] - public void TestRunspaceWithFunction() - { - Listener listener = new Listener("", false, false); - MyHost myHost = new MyHost(listener); - using (var runspace = RunspaceFactory.CreateRunspace(myHost)) - { - runspace.Open(); - - using (PowerShell powerShell = PowerShell.Create()) - { - powerShell.Runspace = runspace; - - powerShell.AddScript("{1}.Invoke()"); - powerShell.Invoke(); - } - - runspace.Close(); - } - } - [Fact] public void TestRunspaceWithPowerShellAndInitialSessionState() {