public void IsAtMost_When_Argument_Exceeds_Max_Should_Throw_ArgumentException() { const int MAX_VALUE = 0; var ex = Assert.Throws <ArgumentException>(() => Invariant.IsAtMost(1, MAX_VALUE, PARAMETER_NAME)); Assert.AreEqual($"Argument '{PARAMETER_NAME}' must not be greater than {MAX_VALUE}.", ex.Message); }
public void IsAtMost_When_Argument_Is_Less_Than_Max_Should_Not_Throw() { Assert.DoesNotThrow(() => Invariant.IsAtMost(0, 1, PARAMETER_NAME)); }