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