Use get-command instead of get-process in xUnit
This commit is contained in:
parent
52d747e56b
commit
5349900c3b
|
@ -12,7 +12,7 @@ namespace PSTests
|
|||
public class RunspaceTests
|
||||
{
|
||||
private static int count = 3;
|
||||
private static string script = String.Format($"get-process | select-object -first {count}");
|
||||
private static string script = String.Format($"get-command | select-object -first {count}");
|
||||
|
||||
[Fact]
|
||||
public void TestRunspaceWithPipeline()
|
||||
|
|
Loading…
Reference in a new issue