示例#1
0
        public void Equals_NullProperties_ThrowsNullReferenceException()
        {
            var attribute = new ExtenderProvidedPropertyAttribute();

            if (!PlatformDetection.IsFullFramework)
            {
                Assert.True(attribute.Equals(new ExtenderProvidedPropertyAttribute()));
            }
            else
            {
                Assert.Throws <NullReferenceException>(() => attribute.Equals(new ExtenderProvidedPropertyAttribute()));
            }
        }
 public void Equals_Object_ReturnsExpected(ExtenderProvidedPropertyAttribute attribute, object other, bool expected)
 {
     Assert.Equal(expected, attribute.Equals(other));
     if (other is ExtenderProvidedPropertyAttribute)
     {
         Assert.Equal(expected, attribute.GetHashCode().Equals(other.GetHashCode()));
     }
 }
        public void Equals_NullProperties_ThrowsNullReferenceException()
        {
            var attribute = new ExtenderProvidedPropertyAttribute();

            Assert.Throws <NullReferenceException>(() => attribute.Equals(new ExtenderProvidedPropertyAttribute()));
        }