Implemented interface member:
10 references to CompareTo
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.UnitTests (5)
LinePositionTests.cs (5)
78Assert.Equal(0, new LinePosition(1, 1).CompareTo(new LinePosition(1, 1)));
80Assert.Equal(-1, Math.Sign(new LinePosition(1, 1).CompareTo(new LinePosition(1, 2))));
83Assert.Equal(-1, Math.Sign(new LinePosition(1, 2).CompareTo(new LinePosition(2, 1))));
88Assert.Equal(+1, Math.Sign(new LinePosition(1, 2).CompareTo(new LinePosition(1, 1))));
91Assert.Equal(+1, Math.Sign(new LinePosition(2, 1).CompareTo(new LinePosition(1, 2))));