public void InstanceHasNotSameHashCodeAsOtherWithDifferenExpression() { var alias1 = new VariableAlias("x", _CreateExpression()); var alias2 = new VariableAlias("x", _CreateExpression()); Assert.AreNotEqual(alias1.GetHashCode(), alias2.GetHashCode()); }
public void InstanceHasSameHashCodeAsOtherWithSameInformation() { var expression = _CreateExpression(); var alias1 = new VariableAlias("x", expression); var alias2 = new VariableAlias("x", expression); Assert.AreEqual(alias1.GetHashCode(), alias2.GetHashCode()); }
public void InstanceHasSameHashCodeAsItself() { var alias = new VariableAlias("x", _CreateExpression()); Assert.AreEqual(alias.GetHashCode(), alias.GetHashCode()); }