Ejemplo n.º 1
0
        public void Equals_DifferentValues()
        {
            var firstAttribute  = new ParenthesizePropertyNameAttribute(true);
            var secondAttribute = new ParenthesizePropertyNameAttribute(false);

            Assert.False(firstAttribute.Equals(secondAttribute));
        }
        public void Equals_DifferentValues()
        {
            var firstAttribute = new ParenthesizePropertyNameAttribute(true);
            var secondAttribute = new ParenthesizePropertyNameAttribute(false);

            Assert.False(firstAttribute.Equals(secondAttribute));
        }
 public void Equals_Object_ReturnsExpected(ParenthesizePropertyNameAttribute attribute, object other, bool expected)
 {
     Assert.Equal(expected, attribute.Equals(other));
     if (other is ParenthesizePropertyNameAttribute)
     {
         Assert.Equal(expected, attribute.GetHashCode().Equals(other.GetHashCode()));
     }
 }