Example #1
0
        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);
        }
Example #2
0
        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);
        }