public void IsLowerThan_ValueIsHigher_ThrowsException() { IntValidator validator = new IntValidator("test", 1); ExceptionAssert.ThrowsLowerThanValidationException("test", 0, () => { validator.IsLowerThan(0); }); }
public void IsLowerThan_ValueEqual_ThrowsException() { IntValidator validator = new IntValidator("test", 1); ExceptionAssert.ThrowsLowerThanValidationException("test", 1, () => { validator.IsLowerThan(1); }); }
public void IsLowerThan_ValueIsLower_NoException() { IntValidator validator = new IntValidator("test", 1); validator.IsLowerThan(2); }