public static void GetHashCodeReturnsSameValuesForSamePositions() { var left = new TestableSyntaxNode(new Position(4, 2)); var right = new TestableSyntaxNode(new Position(4, 2)); Assert.Equal(left.GetHashCode(), right.GetHashCode()); }
public static void GetHashCodeReturnsDifferentValuesForDifferentPositions() { var left = new TestableSyntaxNode(new Position(4, 2)); var right = new TestableSyntaxNode(new Position(2, 4)); Assert.NotEqual(left.GetHashCode(), right.GetHashCode()); }