public void should_fail() { foreach (var testAddr in AddressesFail.Where(a => a != null)) { Assert.IsFalse(Address0.GetHashCode() == testAddr.GetHashCode()); } }
public void should_throw_NullReferenceException() { foreach (var testAddr in AddressesFail.Where(a => a == null)) { Assert.ThrowsException <NullReferenceException>(() => Address0.GetHashCode() == testAddr.GetHashCode()); } }