コード例 #1
0
        public void OrExtensionEvaluatesCorrectly()
        {
            var model = new GuidCount();

            model.Increment();
            Assert.True(new PositiveCounterRule().Or(new NegativeCounterRule()).IsSatisfied(model));
        }
コード例 #2
0
        public void NotExtensionEvaluesCorrectly()
        {
            var model = new GuidCount();

            model.Increment();
            Assert.False(new PositiveCounterRule().Not().IsSatisfied(model));
        }
コード例 #3
0
        public void SimpleSatisfiedRuleReturnsTrue()
        {
            var model = new GuidCount();

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