Fix AssemblyLoadContext fixture

Resolves #676.
This commit is contained in:
Andrew Schwartzmeyer committed 2016-03-17 17:36:06 -07:00
1 parent 6ec3dc308e
commit b820817c84
2 files changed
+27 -6

No files matched your search

+1 -6
View File
@@ -9,17 +9,12 @@ namespace PSTests
// NOTE: do not call AddCommand("out-host") after invoking or MergeMyResults,
// otherwise Invoke will not return any objects
[Collection("AssemblyLoadContext")]
public class RunspaceTests
{
private static int count = 3;
private static string script = String.Format($"get-process | select-object -first {count}");
// Initialize the Core PowerShell AssemblyLoadContext
public RunspaceTests()
{
PowerShellAssemblyLoadContextInitializer.SetPowerShellAssemblyLoadContext(AppContext.BaseDirectory);
}
[Fact]
public void TestRunspaceWithPipeline()
{