public void WithNull_ShouldReturnFailure() { IsEmptyAssertion assertion = IsEmptyAssertion(); ValueAssertionResult result = assertion.AssertValue(null); Assert.IsFalse(result.succeeded); Assert.AreEqual("null", result.actualValueString); Assert.AreEqual(ComposeLog.Expected("empty string"), result.expectationString); }
public void WithEmptyString_ShouldReturnSuccess() { IsEmptyAssertion assertion = IsEmptyAssertion(); ValueAssertionResult result = assertion.AssertValue(""); Assert.IsTrue(result.succeeded); Assert.AreEqual("''", result.actualValueString); Assert.AreEqual(ComposeLog.Expected("empty string"), result.expectationString); }