Example #1
0
 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()));
     }
 }
Example #2
0
 public void Equals(ASCIIEncoding encoding, object value, bool expected)
 {
     Assert.Equal(expected, encoding.Equals(value));
     Assert.Equal(expected, encoding.GetHashCode().Equals(value?.GetHashCode()));
 }
Example #3
0
 public void EqualsTest(ASCIIEncoding encoding, object value, bool expected)
 {
     Assert.Equal(expected, encoding.Equals(value));
     Assert.Equal(expected, encoding.GetHashCode().Equals(value?.GetHashCode()));
 }