private static void CheckBinaryOperation(IExpression left, IExpression right, BinaryOperatorType type, Context context, string expectedOutput) { var bin = new BinaryOperation { Left = left, Right = right, Type = type }; GenerateAndCheck(bin, context); bin.GetResultType(context); Assert.Equal(expectedOutput, Print(bin)); }