Exemplo n.º 1
0
        public void OrExtensionEvaluatesCorrectly()
        {
            var model = new CounterModel();

            model.Increment();
            Assert.True(new PositiveCounterRule().Or(new NegativeCounterRule()).IsSatisfied(model));
        }
Exemplo n.º 2
0
        public void NotExtensionEvaluesCorrectly()
        {
            var model = new CounterModel();

            model.Increment();
            Assert.False(new PositiveCounterRule().Not().IsSatisfied(model));
        }
Exemplo n.º 3
0
        public void SimpleSatisfiedRuleReturnsTrue()
        {
            var model = new CounterModel();

            model.Increment();
            Assert.True(new PositiveCounterRule().IsSatisfied(model));
        }