public void ComparableAssert_IsLowerThan_ValueIsGreaterThanThreshold_ExceptionIsThrown() { try { ComparableAssert.IsLowerThan(42, 50); Assert.Fail("AssertFailedException was expected"); } catch (AssertFailedException) { } }
public void ComparableAssert_IsLowerThan_WithMessage_ValueIsGreaterThanThreshold_ExceptionIsThrown() { try { ComparableAssert.IsLowerThan(42, 50, "AssertMessage"); Assert.Fail("AssertFailedException was expected"); } catch (AssertFailedException ex) { Assert.AreEqual("AssertMessage", ex.Message); } }
public void ComparableAssert_IsLowerThan_WithMessage_ValueIsLowerThanThreshold_NoExceptionIsThrown() { ComparableAssert.IsLowerThan(50, 42, "AssertMessage"); }
public void ComparableAssert_IsLowerThan_ValueIsLowerThanThreshold_NoExceptionIsThrown() { ComparableAssert.IsLowerThan(50, 42); }