Esempio n. 1
0
        public void Assert_OnEquals12_With25_ShouldReturnFailure()
        {
            EqualAssertion <int> assertion = EqualAssertion(12);
            ValueAssertionResult result    = assertion.AssertValue(25);

            Assert.IsFalse(result.succeeded);
            Assert.AreEqual("25", result.actualValueString);
            Assert.AreEqual(ComposeLog.Expected("12"), result.expectationString);
        }
Esempio n. 2
0
        public void Assert_OnEqualsStringy_WithStringy_ShouldReturnSuccess()
        {
            EqualAssertion <string> assertion = EqualAssertion("Stringy");
            ValueAssertionResult    result    = assertion.AssertValue("Stringy");

            Assert.IsTrue(result.succeeded);
            Assert.AreEqual("'Stringy'", result.actualValueString);
            Assert.AreEqual(ComposeLog.Expected("'Stringy'"), result.expectationString);
        }
Esempio n. 3
0
        public void Assert_OnEqualsNull_WithNull_ShouldReturnSuccess()
        {
            EqualAssertion <string> assertion = EqualAssertion <string>(null);
            ValueAssertionResult    result    = assertion.AssertValue(null);

            Assert.IsTrue(result.succeeded);
            Assert.AreEqual("null", result.actualValueString);
            Assert.AreEqual(ComposeLog.Expected("null"), result.expectationString);
        }
Esempio n. 4
0
        public void Assert_OnEquals12_With12_ShouldReturnSuccess()
        {
            EqualAssertion <int> assertion = EqualAssertion <int>(12);
            ValueAssertionResult result    = assertion.AssertValue(12);

            Assert.IsTrue(result.succeeded);
            Assert.AreEqual("12", result.actualValueString);
            Assert.AreEqual(ComposeLog.Expected("12"), result.expectationString);
        }