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