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()); }
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()); }