public void InstanceHasNotSameHashCodeAsOtherWithDifferentNode() { var access1 = new VariableCopy(_CreateFlowNode(), "x", "y"); var access2 = new VariableCopy(_CreateFlowNode(), "x", "y"); Assert.AreNotEqual(access1.GetHashCode(), access2.GetHashCode()); }
public void InstanceHasSameHashCodeAsOtherWithSameInformation() { var node = _CreateFlowNode(); var access1 = new VariableCopy(node, "x", "y"); var access2 = new VariableCopy(node, "x", "y"); Assert.AreEqual(access1.GetHashCode(), access2.GetHashCode()); }
public void InstanceHasSameHashCodeAsItself() { var access = new VariableCopy(_CreateFlowNode(), "x", "y"); Assert.AreEqual(access.GetHashCode(), access.GetHashCode()); }