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