public void op_CompareTo_objectSame() { var obj = new AbsoluteUri("http://example.com/"); const int expected = 0; var actual = obj.CompareTo(obj as object); Assert.Equal(expected, actual); }
public void op_CompareTo_objectLesser() { var obj = new AbsoluteUri("http://example.net/"); object comparand = new AbsoluteUri("http://example.com/"); const int expected = 11; var actual = obj.CompareTo(comparand); Assert.Equal(expected, actual); }
public void op_CompareTo_AbsoluteUriEqual() { var obj = new AbsoluteUri("http://example.com/"); var comparand = new AbsoluteUri("http://example.com/"); const int expected = 0; var actual = obj.CompareTo(comparand); Assert.Equal(expected, actual); }