protected void AssertEvaluation <T, TR>(BinaryOperator @operator, T left, T right, TR expected) { var result = @operator.Evaluate(EmptyEvaluationContext, left, right); Assert.IsInstanceOf <TR>(result); Assert.AreEqual(expected, result); }
protected void AssertEvaluation <T, TR>(BinaryOperator @operator, T left, T right, TR expected) { var result = @operator.Evaluate(EmptyEvaluationContext, left, right); Assert.IsInstanceOf <TR>(result); Assert.AreEqual(expected, result); }