예제 #1
0
 public void ComparableAssert_IsLowerThan_ValueIsGreaterThanThreshold_ExceptionIsThrown()
 {
     try {
         ComparableAssert.IsLowerThan(42, 50);
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException) {
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public void ComparableAssert_IsLowerThan_WithMessage_ValueIsLowerThanThreshold_NoExceptionIsThrown()
 {
     ComparableAssert.IsLowerThan(50, 42, "AssertMessage");
 }
예제 #4
0
 public void ComparableAssert_IsLowerThan_ValueIsLowerThanThreshold_NoExceptionIsThrown()
 {
     ComparableAssert.IsLowerThan(50, 42);
 }