Beispiel #1
0
 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");
 }
Beispiel #2
0
 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");
 }
Beispiel #3
0
            public void SetupContext()
            {
                Parser = new SwitchParser <TestConfigSettings>();
                Parser.AddSwitch("--foo", "-f")
                .SetsField(x => x.Foo)
                .WithDescription("FooDescription");

                Usage = Parser.GetUsage();
            }
Beispiel #4
0
            public void SetupContext()
            {
                Parser = new SwitchParser <TestConfigSettings>();

                Parser
                .AddSwitch("--baz", "-z")
                .WithMultiParamAction((c, v) => { c.Baz = v; });

                Result = TestWithParams("--baz", "baz1", "baz2", "baz3");
            }
Beispiel #5
0
 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; });
            }
Beispiel #11
0
 protected override void SetupSwitches(SwitchParser <InPlaceSettings> parser)
 {
     parser.AddSwitch("--tags", "-g")
     .SetsField(x => x.Tags);
 }
Beispiel #12
0
            public void SetupContext()
            {
                Parser = new SwitchParser <TestConfigSettings>();

                Parser.AddSwitch("--bar", "-b").WithSingleParamAction((c, v) => { c.Bar = v; });
            }
Beispiel #13
0
 public void SetupContext()
 {
     Parser = new SwitchParser <TestConfigSettings>();
     Parser.AddSwitch("--foo", "-f").WithAction(c => { c.Foo = true; });
 }
Beispiel #14
0
            public void SetupContext()
            {
                Parser = new SwitchParser <TestConfigSettings>();

                Parser.AddSwitch("--enum", "-e").SetsEnumField(x => x.EnumTest);
            }
Beispiel #15
0
 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");
 }