예제 #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()));
     }
 }
예제 #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()));
 }
예제 #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()));
 }