//[TestCase(E_OPERATION_TYPE.OT_POW, 3, 2, 9)] works only for double, need to find some trick to implement it public void TestVisitBinaryLambdaFuncNode_CheckLambdaFunctorGeneration_ReturnsLambdaFunctor(E_OPERATION_TYPE type, int x, int y, int res) { IVisitor <Object> interpreter = new CInterpreter(); Func <int, int, int> lambdaFunctor = null; Assert.DoesNotThrow(() => { lambdaFunctor = (Func <int, int, int>)interpreter.VisitBinaryLambdaFuncNode(new CBinaryLambdaFuncASTNode(type)); }); Assert.AreEqual(res, lambdaFunctor(x, y)); }