public static void CompareTo_Other_ReturnsExpected(uint i0, object value, int expected) { nuint i = i0; if (value is uint uintValue) { nuint uintPtrValue = uintValue; Assert.Equal(expected, Math.Sign(i.CompareTo(uintPtrValue))); Assert.Equal(expected, Math.Sign(i.CompareTo((object)uintPtrValue))); } else { Assert.Equal(expected, Math.Sign(i.CompareTo(value))); } }
public int CompareTo(WPARAM other) => Value.CompareTo(other.Value);
public static int CompareTo(this nuint left, nuint right) { return(left.CompareTo(right)); }
private static void Compare_nuint(nuint a, nuint b) => AssertEquals(a.CompareTo(b), Comparer <nuint> .Default.Compare(a, b));
public int CompareTo(pthread_t other) => Value.CompareTo(other.Value);