public void CompareTo_InstanceFollowsArgumentInSortOrder_PositiveValueReturned() { Assert.True(LargeValue.CompareTo(SmallValue1) > 0); Assert.True(LargeValue.CompareTo((object)SmallValue1) > 0); }
public void CompareTo_SameSortOrder_ZeroReturned() { Assert.Equal(0, LargeValue.CompareTo(LargeValue)); Assert.Equal(0, LargeValue.CompareTo((object)LargeValue)); }
public void GetHashCode_DifferentValues_HashCodesAreNotEqual() { Assert.NotEqual(SmallValue1?.GetHashCode(), LargeValue?.GetHashCode()); Assert.NotEqual(SmallValue1?.GetHashCode(), NullValue1?.GetHashCode()); }