public void Compare_WhenIpsAreEqual_ThenResultIsZero(string ip1, string ip2) { // Arrange IPAddress x = IPAddress.Parse(ip1); IPAddress y = IPAddress.Parse(ip2); // Act and Assert Assert.That(_testee.Compare(x, y), Is.EqualTo(0)); }
public int CompareTo(object obj) { return(LocalComparer.Compare(this, obj)); }