public void TestTypeOperatorChecker_When_In() { _typeOperator = new TypeOperator("in", new[] { 3, 5, 7, 9 }); _typeOperator.IsWithinConstraint(3).Should().BeTrue("because its' an odd number"); _typeOperator.IsWithinConstraint(2).Should().BeFalse("because it's an even number"); }
public void TestTypeOperatorChecker_When_Eq() { GetTypeOperatorChecker(3, "="); _typeOperator.IsWithinConstraint(3).Should().BeTrue("because 3 is the limit value"); _typeOperator.IsWithinConstraint(4).Should().BeFalse("because limit value is 3"); }