コード例 #1
0
 public void IsSatisfiedBy_ShouldBeFalseForUnmatchingParameter()
 {
     ChefDownloadOptionSpecification
     .IsSatisfiedBy(OptionGroupTest.ToCommandArguments("chef", "download", "something"))
     .Should()
     .BeFalse();
 }
コード例 #2
0
 public void IsSatisfied_ShouldBeFalseWhenParametersDoNotMatch()
 {
     ChefRunOptionSpecification.IsSatisfiedBy(OptionGroupTest.ToCommandArguments("chef", "version"))
     .Should()
     .BeFalse("because parameters don't match");
 }
コード例 #3
0
 public void IsSatisfiedBy_ShouldBeSatisfiedByExactArguments()
 {
     ChefRunOptionSpecification.IsSatisfiedBy(OptionGroupTest.ToCommandArguments("chef", "run"))
     .Should()
     .BeTrue("because the arguments match exactly");
 }