Esempio n. 1
0
 public void ComparableAssert_IsGreaterThanOrEqualTo_ValueIsLowerThanThreshold_ExceptionIsThrown()
 {
     try {
         ComparableAssert.IsGreaterThanOrEqualTo(50D, 42D);
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException) {
     }
 }
Esempio n. 2
0
 public void ComparableAssert_IsGreaterThanOrEqualTo_WithMessage_ValueIsLowerThanThreshold_ExceptionIsThrown()
 {
     try {
         ComparableAssert.IsGreaterThanOrEqualTo(50M, 42M, "AssertMessage");
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException ex) {
         Assert.AreEqual("AssertMessage", ex.Message);
     }
 }
Esempio n. 3
0
 public void ComparableAssert_IsGreaterThanOrEqualTo_WithMessage_ValueIsEqualToThreshold_NoExceptionIsThrown()
 {
     ComparableAssert.IsGreaterThanOrEqualTo(42M, 42M, "AssertMessage");
 }
Esempio n. 4
0
 public void ComparableAssert_IsGreaterThanOrEqualTo_ValueIsEqualToThreshold_NoExceptionIsThrown()
 {
     ComparableAssert.IsGreaterThanOrEqualTo(42D, 42D);
 }