示例#1
0
 public void StringAssert_IsNotNullOrEmpty_WithNullString_ExceptionIsThrown()
 {
     try {
         StringAssert.IsNotNullOrEmpty(null);
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException) {
     }
 }
示例#2
0
 public void StringAssert_IsNotNullOrEmptyWithMessage_WithNullString_ExceptionIsThrown()
 {
     try {
         StringAssert.IsNotNullOrEmpty(null, "AssertMessage");
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException ex) {
         Assert.AreEqual("AssertMessage", ex.Message);
     }
 }
示例#3
0
 public void StringAssert_IsNotNullOrEmptyWithMessage_WithNonNullNonEmptyString_NoExceptionIsThrown()
 {
     StringAssert.IsNotNullOrEmpty("some value", "AssertMessage");
 }