protected override void SetupSwitches(SwitchParser <GlossaryConfigurator.GlossarySettings> parser) { parser .AddSwitch("--glossary-template", "-g") .SetsField(s => s.GlossaryTemplate) .WithDescription("Sets the spark template for generating the template"); }
protected override void SetupSwitches(SwitchParser <TestFixtureGenerationSettings> parser) { parser .AddSwitch("--destination", "-d") .SetsField(x => x.TargetFilePath) .WithDescription("path to the file that will hold the generated test fixture code"); }
public void SetupContext() { Parser = new SwitchParser <TestConfigSettings>(); Parser.AddSwitch("--foo", "-f") .SetsField(x => x.Foo) .WithDescription("FooDescription"); Usage = Parser.GetUsage(); }
public void SetupContext() { Parser = new SwitchParser <TestConfigSettings>(); Parser .AddSwitch("--baz", "-z") .WithMultiParamAction((c, v) => { c.Baz = v; }); Result = TestWithParams("--baz", "baz1", "baz2", "baz3"); }
protected override void SetupSwitches(SwitchParser <InPlaceSettings> parser) { parser.AddSwitch("--tags", "-g") .WithDescription("Selects @tags to include in the session") .SetsField(x => x.Tags); }
public void SetupContext() { Parser = new SwitchParser<TestConfigSettings>(); Parser.AddSwitch("--foo", "-f").WithAction(c => { c.Foo = true; }); }
public void SetupContext() { Parser = new SwitchParser<TestConfigSettings>(); Parser.AddSwitch("--enum", "-e").SetsEnumField(x => x.EnumTest); }
public void SetupContext() { Parser = new SwitchParser<TestConfigSettings>(); Parser.AddSwitch("--foo", "-f") .SetsField(x => x.Foo) .WithDescription("FooDescription"); Usage = Parser.GetUsage(); }
public void SetupContext() { Parser = new SwitchParser<TestConfigSettings>(); Parser .AddSwitch("--baz", "-z") .WithMultiParamAction((c, v) => { c.Baz = v; }); Result = TestWithParams("--baz", "baz1", "baz2", "baz3"); }
public void SetupContext() { Parser = new SwitchParser<TestConfigSettings>(); Parser.AddSwitch("--bar", "-b").WithSingleParamAction((c, v) => { c.Bar = v; }); }
protected override void SetupSwitches(SwitchParser <InPlaceSettings> parser) { parser.AddSwitch("--tags", "-g") .SetsField(x => x.Tags); }
public void SetupContext() { Parser = new SwitchParser <TestConfigSettings>(); Parser.AddSwitch("--bar", "-b").WithSingleParamAction((c, v) => { c.Bar = v; }); }
public void SetupContext() { Parser = new SwitchParser <TestConfigSettings>(); Parser.AddSwitch("--foo", "-f").WithAction(c => { c.Foo = true; }); }
public void SetupContext() { Parser = new SwitchParser <TestConfigSettings>(); Parser.AddSwitch("--enum", "-e").SetsEnumField(x => x.EnumTest); }
protected override void SetupSwitches(SwitchParser <StubGenerationSettings> parser) { parser.AddSwitch("--clipboard", "-b").SetsField(x => x.WriteToClipboard).WithDescription("Writes the generated stubs to the clipboard"); parser.AddSwitch("--destination", "-d").SetsField(x => x.Destination).WithDescription("Writes the generated stubs to a file"); }