public void IsSatisfied_ShouldBeTrueWhenParameterized() { ChefDownloadOptionSpecification.IsSatisfiedBy(Argument.CreateCommand("chef"), Argument.CreateCommand("download"), new ValueArgument("version:", "1.2.3")) .Should() .BeTrue(); }
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"); }
public void IsSatisfiedBy_ShouldBeSatisfiedByExactArguments() { ChefRunOptionSpecification.IsSatisfiedBy(OptionGroupTest.ToCommandArguments("chef", "run")) .Should() .BeTrue("because the arguments match exactly"); }