public void EqualsTest() { AddressSpaceBuildContext _as = new AddressSpaceBuildContext(); UANodeContext _first = _as.InstanceToTest; UANodeContext _second = _as.InstanceToTest; Assert.IsTrue(_first.Equals(_second)); }
public void GetDerivedInstances4ObjectTest() { AddressSpaceBuildContext _as = new AddressSpaceBuildContext(); UANodeContext _testInstance = _as.InstanceToTest; Assert.IsTrue(_testInstance.UANode.GetType() == typeof(UAObject)); Assert.AreEqual <string>("1:InstanceOfDerivedFromComplexObjectType", _testInstance.BrowseName.ToString()); Dictionary <string, IUANodeBase> _result = _testInstance.GetDerivedInstances(); Assert.IsNotNull(_result); Assert.AreEqual <int>(4, _result.Count); }