public static TestAction Action(WinFormsTestAction a, GenerateServiceExecutableArguments az = null) { Func<string, string[]> nop = x => new string[0]; return new TestAction { Program = Files.WinFormsTestProgram, ActionName = a.ToString(), Arguments = az == null ? nop : x => az(x) }; }
public static TestAction Action(WinFormsTestAction a, params string[] argz) { return Action(a, _ => argz); }