public void OrExtensionEvaluatesCorrectly() { var model = new GuidCount(); model.Increment(); Assert.True(new PositiveCounterRule().Or(new NegativeCounterRule()).IsSatisfied(model)); }
public void NotExtensionEvaluesCorrectly() { var model = new GuidCount(); model.Increment(); Assert.False(new PositiveCounterRule().Not().IsSatisfied(model)); }
public void SimpleSatisfiedRuleReturnsTrue() { var model = new GuidCount(); model.Increment(); Assert.True(new PositiveCounterRule().IsSatisfied(model)); }