public int CompareTest(AddressFamily x, AddressFamily y) { // Arrange var comparer = new DefaultAddressFamilyComparer(); // Act var compare = comparer.Compare(x, y); // Assert return(compare); }
public void Compare_Test(int expected, AddressFamily x, AddressFamily y) { // Arrange var comparer = new DefaultAddressFamilyComparer(); // Act var result = comparer.Compare(x, y); // Assert Assert.Equal(expected, result); }