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()));
     }
 }
        public void GetHashCode_NullDescription_ThrowsNullReferenceException()
        {
            var attribute = new DescriptionAttribute(null);

            Assert.Throws <NullReferenceException>(() => attribute.GetHashCode());
        }