public void Equals_DifferentDescriptions() { var firstAttribute = new DescriptionAttribute("description"); var secondAttribute = new DescriptionAttribute(string.Empty); Assert.False(firstAttribute.Equals(secondAttribute)); }
public void Equals_DifferentDescriptions() { var firstAttribute = new DescriptionAttribute("description"); var secondAttribute = new DescriptionAttribute(string.Empty); Assert.False(firstAttribute.Equals(secondAttribute)); }
public void Equals_Object_ReturnsExpected(DescriptionAttribute attribute, object other, bool expected) { Assert.Equal(expected, attribute.Equals(other)); if (other is DescriptionAttribute otherAttribute) { Assert.Equal(expected, attribute.GetHashCode().Equals(other.GetHashCode())); } }