Example #1
0
        public void WhenEqualsPredicateLoadedWithMatchingValues_AnswerShouldBeFalse()
        {
            EqualsPredicate equals = new EqualsPredicate();

            equals.Push(new Value(3.5m, "TEST"));
            equals.Push(new Value(3.5m, "TEST"));

            Assert.IsTrue(equals.GetValue());
        }
Example #2
0
        public void WhenThirdValueAddedToPredicate_Fails()
        {
            EqualsPredicate equals = new EqualsPredicate();

            equals.Push(new Value(123.456m, "TEST"));
            equals.Push(new Value(123.456m, "TEST"));
            equals.Push(new Value(123.456m, "TEST"));

            Assert.IsTrue(equals.GetValue());
        }