public void IsLessThanDoubleShouldNotRaiseExceptionIfLessThan() { var foo = 5.0; var result = AssertArg.IsLessThan(6.0, foo, nameof(foo)); Assert.AreEqual(foo, result); }
public void IsLessThanOrEqualDoubleShouldRaiseExceptionIfNotLessThan() { AssertArg.IsLessThan(0.0, 1.0, "None"); }
public void IsLessThanOrEqualIntShouldRaiseExceptionIfNotLessThan() { AssertArg.IsLessThan(0, 1, "None"); }
public void IsLessThanDoubleShouldRaiseExceptionIfEqual() { AssertArg.IsLessThan(1.0, 1.0, "None"); }
public void IsLessThanIntShouldRaiseExceptionIfEqual() { AssertArg.IsLessThan(1, 1, "None"); }