public void RemoveInheritedRemoveSameValuesTest() { UAObjectType _derived = GetDerivedFromComplexObjectType(); UAObjectType _base = GetDerivedFromComplexObjectType(); _derived.RemoveInheritedValues(_base); Assert.IsNull(_derived.DisplayName); }
public void RemoveInheritedKeepDifferentValuesTest() { UAObjectType _derived = GetDerivedFromComplexObjectType(); UAObjectType _base = GetComplexObjectType(); _derived.RemoveInheritedValues(_base); Assert.AreEqual <int>(1, _derived.DisplayName.Length); Assert.AreEqual <string>("DerivedFromComplexObjectType", _derived.DisplayName[0].Value); }