public void EqualsDifferentTypesTest() { var def = new Define(Variable.X, new Number(1)); var number = new Number(1); Assert.False(def.Equals(number)); }
public void EqualsDifferentOnjectsTest() { var def1 = new Define(Variable.X, new Number(1)); var def2 = new Define(new Variable("y"), new Number(2)); Assert.False(def1.Equals(def2)); }
public void EqualsSameReferenceTest() { var def = new Define(Variable.X, new Number(1)); Assert.True(def.Equals(def)); }