public void ShouldReturnEqualtyByNames() { PropertyEditorAttribute attribute1 = new PropertyEditorAttribute("type"); PropertyEditorAttribute attribute2 = new PropertyEditorAttribute("type"); Assert.IsTrue(attribute1.Equals(attribute2)); Assert.IsTrue(attribute2.Equals(attribute1)); }
public void ShouldReturnEqualtyForSameInstance() { PropertyEditorAttribute attribute = new PropertyEditorAttribute("type"); Assert.IsTrue(attribute.Equals(attribute)); }