public void ParseOptionsWithDefaults() { var options = new SimpleOptionsWithDefaults(); Result = base.Parser.ParseArguments(new string[] {}, options); ResultShouldBeTrue(); options.StringValue.Should().Equal("str"); options.IntegerValue.Should().Equal(9); options.BooleanValue.Should().Be.True(); }
public void Parse_options_with_defaults() { var options = new SimpleOptionsWithDefaults(); var parser = new CommandLineParser(); var result = parser.ParseArguments(new string[] {}, options); result.Should().BeTrue(); options.StringValue.Should().Be("str"); options.IntegerValue.Should().Be(9); options.BooleanValue.Should().BeTrue(); }
public void ParseOptionsWithDefaults() { var options = new SimpleOptionsWithDefaults(); bool result = base.Parser.ParseArguments(new string[] {}, options); base.AssertParserSuccess(result); Assert.AreEqual("str", options.StringValue); Assert.AreEqual(9, options.IntegerValue); Assert.AreEqual(true, options.BooleanValue); }
public void ParseOptionsWithDefaults() { var options = new SimpleOptionsWithDefaults(); Result = base.Parser.ParseArguments(new string[] {}, options); ResultShouldBeTrue(); Assert.AreEqual("str", options.StringValue); Assert.AreEqual(9, options.IntegerValue); Assert.AreEqual(true, options.BooleanValue); }