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); }
public void NodeClassEnumTest() { UANode _toTest = new UADataType(); Assert.AreEqual <NodeClassEnum>(NodeClassEnum.UADataType, _toTest.NodeClassEnum); _toTest = new UAObject(); Assert.AreEqual <NodeClassEnum>(NodeClassEnum.UAObject, _toTest.NodeClassEnum); _toTest = new UAObjectType(); Assert.AreEqual <NodeClassEnum>(NodeClassEnum.UAObjectType, _toTest.NodeClassEnum); _toTest = new UAReferenceType(); Assert.AreEqual <NodeClassEnum>(NodeClassEnum.UAReferenceType, _toTest.NodeClassEnum); _toTest = new UAVariable(); Assert.AreEqual <NodeClassEnum>(NodeClassEnum.UAVariable, _toTest.NodeClassEnum); _toTest = new UAVariableType(); Assert.AreEqual <NodeClassEnum>(NodeClassEnum.UAVariableType, _toTest.NodeClassEnum); _toTest = new UAView(); Assert.AreEqual <NodeClassEnum>(NodeClassEnum.UAView, _toTest.NodeClassEnum); _toTest = new UAMethod(); Assert.AreEqual <NodeClassEnum>(NodeClassEnum.UAMethod, _toTest.NodeClassEnum); }