Exemple #1
0
 public void IsSatisfied_ShouldBeTrueWhenParameterized()
 {
     ChefDownloadOptionSpecification.IsSatisfiedBy(Argument.CreateCommand("chef"),
                                                   Argument.CreateCommand("download"), new ValueArgument("version:", "1.2.3"))
     .Should()
     .BeTrue();
 }
Exemple #2
0
        public void IsSatisfiedBy_ShouldBeTrueForOptionalArgumentThatIsNotThere()
        {
            var specification = new OptionSpecification(OptionValueSpecification.ForCommand("required"),
                                                        OptionValueSpecification.ForOptionalCommand("optional"));

            specification.IsSatisfiedBy(Argument.CreateCommand("required"))
            .Should()
            .BeTrue("because the command is optional");
        }
Exemple #3
0
 public void IsSatisfiedBy_ShouldBeSatisfiedByExactArguments()
 {
     ChefRunOptionSpecification.IsSatisfiedBy(OptionGroupTest.ToCommandArguments("chef", "run"))
     .Should()
     .BeTrue("because the arguments match exactly");
 }