Пример #1
0
        protected bool AreEqual <T>(AssertionState <T> assertionState, Func <T, object> toEqualTransformer)
        {
            var testValue = assertionState.TestExpression();
            var toEqual   = toEqualTransformer(testValue);

            return(AreEqual(testValue, toEqual, assertionState.IsNegated));
        }
Пример #2
0
 protected bool AreEqual <T>(AssertionState <T> assertionState, object toEqual)
 {
     return(AreEqual(assertionState.TestExpression(), toEqual, assertionState.IsNegated));
 }
Пример #3
0
        protected bool AreEqual <T>(AssertionState <T> assertionState, Func <T, object> valueTransformer, object toEqual)
        {
            var testValue = valueTransformer(assertionState.TestExpression());

            return(AreEqual(testValue, toEqual, assertionState.IsNegated));
        }