예제 #1
0
        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());
        }
예제 #2
0
        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());
        }
예제 #3
0
 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());
 }
예제 #4
0
 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());
 }