public void Equals(ASCIIEncoding encoding, object value, bool expected) { Assert.Equal(expected, encoding.Equals(value)); if (value is ASCIIEncoding) { Assert.Equal(expected, encoding.GetHashCode().Equals(value.GetHashCode())); } }
public void Equals(ASCIIEncoding encoding, object value, bool expected) { Assert.Equal(expected, encoding.Equals(value)); Assert.Equal(expected, encoding.GetHashCode().Equals(value?.GetHashCode())); }
public void EqualsTest(ASCIIEncoding encoding, object value, bool expected) { Assert.Equal(expected, encoding.Equals(value)); Assert.Equal(expected, encoding.GetHashCode().Equals(value?.GetHashCode())); }