public void IsLessThan_OutOfRangeValue_ArgumentOutOfRangeException( [Values(0, 1, int.MaxValue)] int value) { var ex = Assert.Throws <ArgumentOutOfRangeException>( () => ParameterValidation.IsLessThan(value, 0, TestParameterName)); Assert.That(ex.ParamName, Is.EqualTo(TestParameterName)); }
public void IsLessThan_InRangeValue_DoesNotThrow( [Values(-1, -2, int.MinValue)] int value) { Assert.DoesNotThrow( () => ParameterValidation.IsLessThan(value, 0, TestParameterName)); }