Beispiel #1
0
        public void Negation()
        {
            ISpecification <int> spec = new LessThan10().Not();

            Assert.That(spec.IsSatisfiedBy(5), Is.False);
            Assert.That(spec.IsSatisfiedBy(11), Is.True);
        }
Beispiel #2
0
        public void Satisfaction()
        {
            var spec = new LessThan10();

            Assert.That(spec.IsSatisfiedBy(5), Is.True);
            Assert.That(spec.IsSatisfiedBy(11), Is.False);
        }