public void Value_Equality() { var a0 = new MultiHash("QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4"); var a1 = new MultiHash("QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4"); var b = new MultiHash("QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L5"); MultiHash c = null; MultiHash d = null; Assert.True(c == d); Assert.False(c == b); Assert.False(b == c); Assert.False(c != d); Assert.True(c != b); Assert.True(b != c); #pragma warning disable 1718 Assert.True(a0 == a0); Assert.True(a0 == a1); Assert.False(a0 == b); #pragma warning disable 1718 Assert.False(a0 != a0); Assert.False(a0 != a1); Assert.True(a0 != b); Assert.True(a0.Equals(a0)); Assert.True(a0.Equals(a1)); Assert.False(a0.Equals(b)); Assert.Equal(a0, a0); Assert.Equal(a0, a1); Assert.NotEqual(a0, b); Assert.Equal(a0, a0); Assert.Equal(a0, a1); Assert.NotEqual(a0, b); Assert.Equal(a0.GetHashCode(), a0.GetHashCode()); Assert.Equal(a0.GetHashCode(), a1.GetHashCode()); Assert.NotEqual(a0.GetHashCode(), b.GetHashCode()); }