public void GreaterThan()
        {
            var args = new GreaterThanArguments();

            CommandLineParser.Parse(new string[] { }, args).Should().BeTrue();
            CommandLineParser.Parse(new[] { "/value=0" }, args).Should().BeFalse();
            CommandLineParser.Parse(new[] { "/value=10" }, args).Should().BeFalse();
            CommandLineParser.Parse(new[] { "/value=11" }, args).Should().BeTrue();
        }
        public void GreaterThan()
        {
            var args = new GreaterThanArguments();

            TryParse(Array.Empty <string>(), args).Should().BeTrue();
            TryParse(new[] { "/value=0" }, args).Should().BeFalse();
            TryParse(new[] { "/value=10" }, args).Should().BeFalse();
            TryParse(new[] { "/value=11" }, args).Should().BeTrue();
        }
Exemple #3
0
 public void GreaterThan()
 {
     var args = new GreaterThanArguments();
     CommandLineParser.Parse(new string[] { }, args).Should().BeTrue();
     CommandLineParser.Parse(new[] { "/value=0" }, args).Should().BeFalse();
     CommandLineParser.Parse(new[] { "/value=10" }, args).Should().BeFalse();
     CommandLineParser.Parse(new[] { "/value=11" }, args).Should().BeTrue();
 }