public void BuildsSwitches()
        {
            bool         executed = false;
            const string Name     = "switch";

            this.testee.WithSwitch(Name, () => { executed = true; });

            CommandLineConfiguration result = this.testee.BuildConfiguration();

            result.Should().HaveSwitch(Name, () => executed);
        }
        public void BuildsNamedArguments()
        {
            const string Value          = "value";
            const string Name           = "name";
            string       parsedArgument = null;

            this.testee.WithNamed(Name, x => parsedArgument = x);

            CommandLineConfiguration result = this.testee.BuildConfiguration();

            result.Should().HaveNamed(Name, Value, () => parsedArgument == Value);
        }
        public void BuildsPositionalArguments()
        {
            const string Value = "value";

            string parsedArgument = null;

            this.testee.WithPositional(x => parsedArgument = x);

            CommandLineConfiguration result = this.testee.BuildConfiguration();

            result.Should().HavePositional(Value, () => parsedArgument == Value);
        }