public override SqlNode Clone() { return(new SetVariableStatement() { ScalarExpression = ScalarExpression?.Clone() as ScalarExpression, VariableReference = VariableReference?.Clone() as VariableReference }); }
public void TestCloneVariableReference() { VariableReference variableReference = new VariableReference() { Name = "test" }; var clone = variableReference.Clone() as VariableReference; Assert.AreEqual(variableReference, clone); Assert.IsFalse(ReferenceEquals(variableReference, clone)); }