Example #1
0
 public static void WhenAddParameters(this CmdletTestContext context, IDictionary <string, string> parameters)
 {
     foreach (var parameter in parameters)
     {
         context.Powershell.AddParameter(parameter.Key, parameter.Value);
     }
 }
Example #2
0
 public static void GivenCommand(this CmdletTestContext context, string command) =>
 context.Powershell.AddCommand(command);
Example #3
0
 public static void WhenInvokeCommand(this CmdletTestContext context, out Collection <PSObject> result)
 {
     result = context.Powershell.Invoke();
 }