mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
1 parent
6ec3dc308e
commit
b820817c84
2 files changed
+27
-6
No files matched your search
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user