예제 #1
0
        public void ShouldReturnEqualtyByNames()
        {
            PropertyEditorAttribute attribute1 = new PropertyEditorAttribute("type");
            PropertyEditorAttribute attribute2 = new PropertyEditorAttribute("type");

            Assert.IsTrue(attribute1.Equals(attribute2));
            Assert.IsTrue(attribute2.Equals(attribute1));
        }
예제 #2
0
        public void ShouldReturnEqualtyForSameInstance()
        {
            PropertyEditorAttribute attribute = new PropertyEditorAttribute("type");

            Assert.IsTrue(attribute.Equals(attribute));
        }