public void CompareByIndices() { var list = new ComparableList <double>(); list.Add(2.5); list.Add(2.6); Assert.Equal(0, list.Compare(0, 0)); Assert.Equal(1, list.Compare(1, 0)); Assert.Equal(-1, list.Compare(0, 1)); }