public override Expr ConstructBinaryOp() => Multiply.Create(this.Left, this.Right);
public void Evaluate_Multiply_Test() { Expression left = CreateIntLiteral(2); Expression right = CreateIntLiteral(2); Expression multiply = new Multiply(left, right, pos); Values.Int value = ((Values.Int)multiply.Accept(evaluator)); Assert.IsTrue(value.GetValue() == 4); }