public void NotIsSatisfiedByTest(int number, bool result) { // arrange var sut = new Specification<int>(x => x < 10); // act var isSatisfiedBy = sut.Not(y => y < 7).IsSatisfiedBy().Compile().Invoke(number); // assert Assert.Equal(result, isSatisfiedBy); }
public void NotEqualIsSatisfiedByTest(int number, bool result) { // arrange var maxSixSpecification = this.GetSpecificationUpperLimmit(7); var sut = new Specification<int>(x => x > 10); // act var isSatisfiedBy = sut.Not(maxSixSpecification).IsSatisfiedBy().Compile().Invoke(number); // assert Assert.Equal(result, isSatisfiedBy); }