public void Multiple_IsSatisfied_Is_True_If_Single_Spec() { var single = new FalseSpecification <object>(); var spec = AndSpecification <object> .Multiple(single); Assert.That(spec.IsSatisfiedBy(new object()), Is.True); }
public bool Multiple_IsSatisfied_Is_True_If_All_Is_True(bool firstResult, bool secondResult, bool thirdResult) { var first = new DirectSpecification <object>(o => firstResult); var second = new DirectSpecification <object>(o => secondResult); var third = new DirectSpecification <object>(o => thirdResult); var spec = AndSpecification <object> .Multiple(first, second, third); return(spec.IsSatisfiedBy(new object())); }
public void Multiple_IsSatisfied_Is_False_If_No_Specs() { var spec = AndSpecification <object> .Multiple(); Assert.That(spec.IsSatisfiedBy(new object()), Is.False); }