Esempio n. 1
0
 public void StringAssert_IsNotNullOrEmpty_WithNullString_ExceptionIsThrown()
 {
     try {
         StringAssert.IsNotNullOrEmpty(null);
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException) {
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 3
0
 public void StringAssert_IsNotNullOrEmptyWithMessage_WithNonNullNonEmptyString_NoExceptionIsThrown()
 {
     StringAssert.IsNotNullOrEmpty("some value", "AssertMessage");
 }