public void NotValueString() { var args = new NotValueStringArguments(); CommandLineParser.Parse(new string[] { }, args).Should().BeTrue(); CommandLineParser.Parse(new[] { "/value=abc" }, args).Should().BeTrue(); CommandLineParser.Parse(new[] { "/value=Hello" }, args).Should().BeFalse(); CommandLineParser.Parse(new[] { "/value=Hello " }, args).Should().BeTrue(); CommandLineParser.Parse(new[] { "/value=H ello " }, args).Should().BeTrue(); CommandLineParser.Parse(new[] { "/value=HELLO" }, args).Should().BeTrue(); }
public void NotValueString() { var args = new NotValueStringArguments(); TryParse(Array.Empty <string>(), args).Should().BeTrue(); TryParse(new[] { "/value=abc" }, args).Should().BeTrue(); TryParse(new[] { "/value=Hello" }, args).Should().BeFalse(); TryParse(new[] { "/value=Hello " }, args).Should().BeTrue(); TryParse(new[] { "/value=H ello " }, args).Should().BeTrue(); TryParse(new[] { "/value=HELLO" }, args).Should().BeTrue(); }