Пример #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);
     }
 }
Пример #2
0
 public static void GivenCommand(this CmdletTestContext context, string command) =>
 context.Powershell.AddCommand(command);
Пример #3
0
 public static void WhenInvokeCommand(this CmdletTestContext context, out Collection <PSObject> result)
 {
     result = context.Powershell.Invoke();
 }