public void Parse_two_uint_consecutive_array_using_short_names() { var options = new OptionsWithUIntArray(); var result = CommandLine.Parser.Default.ParseArguments(new string[] { "-s", "just a string", "-o", "10", "20", "30", "40", "-t", "11", "22", "33", "44", "-b" }, options); result.Should().BeTrue(); options.SomeStringValue.Should().Be("just a string"); base.ElementsShouldBeEqual(new uint[] { 10, 20, 30, 40 }, options.ArrayOne); base.ElementsShouldBeEqual(new uint[] { 11, 22, 33, 44 }, options.ArrayTwo); options.SomeBooleanValue.Should().BeTrue(); }
public void Parse_two_uint_consecutive_array_using_short_names() { var options = new OptionsWithUIntArray(); var result = CommandLine.Parser.Default.ParseArguments(new string[] { "-s", "just a string", "-o", "10", "20", "30", "40", "-t", "11", "22", "33", "44", "-b" }, options); result.Should().BeTrue(); options.SomeStringValue.Should().Be("just a string"); base.ElementsShouldBeEqual(new uint[] {10, 20, 30, 40}, options.ArrayOne); base.ElementsShouldBeEqual(new uint[] {11, 22, 33, 44}, options.ArrayTwo); options.SomeBooleanValue.Should().BeTrue(); }