public void AndSpecification_ReturnsTrue_ForTrueSpec() { TrueSpecification trueSpec = new TrueSpecification(); TrueBoolSpecification trueBoolSpec = new TrueBoolSpecification(); AndSpecification <IBoolSpecification> andSpec = new AndSpecification <IBoolSpecification>(trueBoolSpec, trueBoolSpec); Assert.IsTrue(andSpec.IsSatisfiedBy(trueSpec), "AndSpecification returned false for true bool value."); }
public void AndSpecification_ReturnsFalse_ForFalseSpec() { FalseSpecification falseSpec = new FalseSpecification(); TrueBoolSpecification trueBoolSpec = new TrueBoolSpecification(); AndSpecification <IBoolSpecification> andSpec = new AndSpecification <IBoolSpecification>(trueBoolSpec, trueBoolSpec); Assert.IsFalse(andSpec.IsSatisfiedBy(falseSpec), "AndSpecification returned true for false bool value."); }