public void CloneTest() { var exp = new Var(new[] { new Number(1), new Number(2) }, 2); var clone = exp.Clone(); Assert.Equal(exp, clone); }
public void Test_Clone1() { var variable = new Var('a'); var variable1 = variable.Clone(); variable1.Token = "b"; Assert.True(variable.Token.Equals('a')); Assert.True(variable.ToString().Equals("a")); }