public void Equals_AllPropertiesEqual_ReturnsTrue() { var fieldData1 = new FieldData("FieldData1", ContentType.Element, "Path1"); var fieldData2 = new FieldData("FieldData1", ContentType.Element, "Path1"); Assert.NotSame(fieldData1, fieldData2); Assert.True(fieldData1.Equals(fieldData2)); }
public void Equals_AnyPropertiesDifferent_ReturnsFalse() { var fieldData1 = new FieldData("FieldData1", ContentType.Element, "Path1"); var fieldData2 = new FieldData("FieldData1", ContentType.Attribute, "Path1"); Assert.NotSame(fieldData1, fieldData2); Assert.False(fieldData1.Equals(fieldData2)); }