Exemplo n.º 1
0
        public void SatisfiedByHandlesNull(string value, bool expected)
        {
            var isNull = new TestSpecification <string>(val => val == null);

            var result = new Negated <string>(isNull).IsSatisfiedBy(value);

            result.Should()
            .Be(expected);
        }
Exemplo n.º 2
0
        public void SatisfiedByYieldCorrectResult(int value, bool expected)
        {
            var isPositive = new TestSpecification <int>(val => val > 0);

            var result = new Negated <int>(isPositive).IsSatisfiedBy(value);

            result.Should()
            .Be(expected);
        }