コード例 #1
0
        public void GetHashCodeTest()
        {
            ComplexBindingPropertiesAttribute a;

            a = new ComplexBindingPropertiesAttribute("source", "member");
            Assert.IsFalse(0 == a.GetHashCode(), "1");

            a = new ComplexBindingPropertiesAttribute("source");
            Assert.IsFalse(0 == a.GetHashCode(), "2");
        }
コード例 #2
0
        public void GetHashCode_Invoke_ReturnsConsistentValue()
        {
            var attribute = new ComplexBindingPropertiesAttribute();

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