Пример #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);
 }