Ejemplo n.º 1
0
 public void ComparableAssert_IsLowerThanOrEqualTo_ValueIsGreaterThanThreshold_ExceptionIsThrown()
 {
     try {
         ComparableAssert.IsLowerThanOrEqualTo(42D, 50D);
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException) {
     }
 }
Ejemplo n.º 2
0
 public void ComparableAssert_IsLowerThanOrEqualTo_WithMessage_ValueIsGreaterThanThreshold_ExceptionIsThrown()
 {
     try {
         ComparableAssert.IsLowerThanOrEqualTo(42M, 50M, "AssertMessage");
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException ex) {
         Assert.AreEqual("AssertMessage", ex.Message);
     }
 }
Ejemplo n.º 3
0
 public void ComparableAssert_IsLowerThanOrEqualTo_ValueIsEqualToThreshold_NoExceptionIsThrown()
 {
     ComparableAssert.IsLowerThanOrEqualTo(42D, 42D);
 }
Ejemplo n.º 4
0
 public void ComparableAssert_IsLowerThanOrEqualTo_WithMessage_ValueIsEqualToThreshold_NoExceptionIsThrown()
 {
     ComparableAssert.IsLowerThanOrEqualTo(42M, 42M, "AssertMessage");
 }