public void Equals_Other_ReturnsExpected(ProvidePropertyAttribute attribute, object other, bool expected) { Assert.Equal(expected, attribute.Equals(other)); if (other is DesignerAttribute) { Assert.Equal(expected, attribute.GetHashCode().Equals(other.GetHashCode())); } }
public void Equals_SameNames() { var propertyName = "property"; var receiverTypeName = "receiver"; var firstAttribute = new ProvidePropertyAttribute(propertyName, receiverTypeName); var secondAttribute = new ProvidePropertyAttribute(propertyName, receiverTypeName); Assert.True(firstAttribute.Equals(secondAttribute)); }
public void Equals_Other_ReturnsExpected(ProvidePropertyAttribute attribute, object other, bool expected) { Assert.Equal(expected, attribute.Equals(other)); }