Remove GenerateTypeCatalog from RunspaceTests

This was Garrett's workaround that we no longer use.
This commit is contained in:
Andrew Schwartzmeyer
2015-12-15 14:21:44 -08:00
parent 59c1f1cb80
commit 1c09c3f738
@@ -8,25 +8,14 @@ namespace PSTests
// NOTE: do not call AddCommand("out-host") after invoking or MergeMyResults,
// otherwise Invoke will not return any objects
public class RunspaceTests: IDisposable
public class RunspaceTests
{
private static int count = 3;
private static string script = String.Format($"get-process | select-object -first {count}");
public RunspaceTests()
{
TypeCatalog.GenerateTypeCatalog();
Assert.NotNull(System.Management.Automation.ClrHost.TypeCatalog);
}
public void Dispose()
{
}
[Fact]
public void TestRunspaceWithPipeline()
{
Assert.NotNull(System.Management.Automation.ClrHost.TypeCatalog);
using (Runspace runspace = RunspaceFactory.CreateRunspace())
{
runspace.Open();