Beispiel #1
0
 public void StringAssert_IsNullOrEmpty_WithNonNullNonEmptyString_ExceptionIsThrown()
 {
     try {
         StringAssert.IsNullOrEmpty("some value");
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException) {
     }
 }
Beispiel #2
0
 public void StringAssert_IsNullOrEmptyWithMessage_WithNonNullNonEmptyString_ExceptionIsThrown()
 {
     try {
         StringAssert.IsNullOrEmpty("some value", "AssertMessage");
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException ex) {
         Assert.AreEqual("AssertMessage", ex.Message);
     }
 }
Beispiel #3
0
 public void StringAssert_IsNullOrEmptyWithMessage_WithNullString_NoExceptionIsThrown()
 {
     StringAssert.IsNullOrEmpty(null, "AssertMessage");
 }
Beispiel #4
0
 public void StringAssert_IsNullOrEmpty_WithNullString_NoExceptionIsThrown()
 {
     StringAssert.IsNullOrEmpty(null);
 }
Beispiel #5
0
 public void StringAssert_IsNullOrEmpty_WithEmptyString_NoExceptionIsThrown()
 {
     StringAssert.IsNullOrEmpty(string.Empty);
 }