Пример #1
0
        public void LeftFalse_RightTrue_False()
        {
            var s = new FalseSpecification();

            var result = (!s).IsSatisfiedBy(null);

            result.Should().BeTrue();
        }
Пример #2
0
        public void LeftFalse_RightFalse_False()
        {
            var left  = new FalseSpecification();
            var right = new FalseSpecification();

            var result = (left & right).IsSatisfiedBy(null);

            result.Should().BeFalse();
        }
Пример #3
0
        public void LeftFalse_RightTrue_False()
        {
            var left  = new FalseSpecification();
            var right = new TrueSpecification();

            var result = left.BitwiseOr(right).IsSatisfiedBy(null);

            result.Should().BeTrue();
        }