From 0012fa90d6ccc0a8e4aa64db3c50568f97f6b93a Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 5 May 2016 16:31:44 -0700 Subject: [PATCH] Remove deprecated Listener tests --- test/csharp/test_Runspace.cs | 49 ------------------------------------ 1 file changed, 49 deletions(-) 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() {