示例#1
0
 public void StringAssert_IsNullOrEmpty_WithNonNullNonEmptyString_ExceptionIsThrown()
 {
     try {
         StringAssert.IsNullOrEmpty("some value");
         Assert.Fail("AssertFailedException was expected");
     }
     catch (AssertFailedException) {
     }
 }
示例#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);
     }
 }
示例#3
0
 public void StringAssert_IsNullOrEmptyWithMessage_WithNullString_NoExceptionIsThrown()
 {
     StringAssert.IsNullOrEmpty(null, "AssertMessage");
 }
示例#4
0
 public void StringAssert_IsNullOrEmpty_WithNullString_NoExceptionIsThrown()
 {
     StringAssert.IsNullOrEmpty(null);
 }
示例#5
0
 public void StringAssert_IsNullOrEmpty_WithEmptyString_NoExceptionIsThrown()
 {
     StringAssert.IsNullOrEmpty(string.Empty);
 }