Antmicro.OptionsParser.Tests.ParserTests.ShouldParseOptionWithSpacesInValue C# (CSharp) Метод

ShouldParseOptionWithSpacesInValue() приватный Метод

private ShouldParseOptionWithSpacesInValue ( ) : void
Результат void
        public void ShouldParseOptionWithSpacesInValue()
        {
            var args = new [] { "--option=Value with spaces" };
            var parser = new OptionsParser();
            parser.WithOption<string>("option");

            parser.Parse(args);

            Assert.AreEqual(1, parser.ParsedOptions.Count());
            Assert.AreEqual("option", parser.ParsedOptions.First().Flag.LongName);
            Assert.AreEqual("Value with spaces", parser.ParsedOptions.First().Value);
        }