示例#1
0
        public void EqualsTest()
        {
            DefaultBindingPropertyAttribute a;

            a = new DefaultBindingPropertyAttribute("test");
            Assert.IsFalse(a.Equals(null), "1");
            Assert.IsFalse(a.Equals(new DefaultBindingPropertyAttribute("other")), "2");
            Assert.IsFalse(a.Equals(new DefaultBindingPropertyAttribute("Test")), "3");
            Assert.IsTrue(a.Equals(new DefaultBindingPropertyAttribute("test")), "4");
        }
 public void Equals_Other_ReturnsExpected(DefaultBindingPropertyAttribute attribute, object other, bool expected)
 {
     Assert.Equal(expected, attribute.Equals(other));
 }