GetHashCode() public method

public GetHashCode ( ) : int
return int
        public void GetHashCode_NullPropertyName_ReturnsEqual()
        {
            var attribute = new ProvidePropertyAttribute(null, "receiverTypeName");

            if (!PlatformDetection.IsFullFramework)
            {
                Assert.Equal(attribute.GetHashCode(), attribute.GetHashCode());
            }
            else
            {
                Assert.Throws <NullReferenceException>(() => attribute.GetHashCode());
            }
        }
 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 GetHashCode_NullReceiverTypeName_ThrowsNullReferenceException()
        {
            var attribute = new ProvidePropertyAttribute("propertyName", (string)null);

            Assert.Throws <NullReferenceException>(() => attribute.GetHashCode());
        }
        public void GetHashCode_InvokeMultipleTimes_ReturnsEqual()
        {
            var attribute = new ProvidePropertyAttribute("propertyName", "receiverTypeName");

            Assert.Equal(attribute.GetHashCode(), attribute.GetHashCode());
        }