예제 #1
0
        public void WhenOneValueAddedToPredicate_Fails()
        {
            EqualsPredicate equals = new EqualsPredicate();

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

            Assert.IsTrue(equals.GetValue());
        }
예제 #2
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());
        }
예제 #3
0
        public void WhenNoValuesAddedToPredicate_Fails()
        {
            EqualsPredicate equals = new EqualsPredicate();

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