public void GetChildrenTest() { using (BoilerState _boilerState = new BoilerState(null, "browseName")) { List <BaseInstanceState> _children = new List <BaseInstanceState>(); _boilerState.GetChildren(_children); Assert.AreEqual <int>(7, _children.Count); } }
private void CreateBoiler() { Boiler = new BoilerState(null); Boiler.Create(m_nodeManager.SystemContext, new NodeId(countBoilers, m_namespaceindex), new QualifiedName(m_BoilerName, m_nodeManager.NamespaceIndexes[0]), null, true); IList <BaseInstanceState> children = new List <BaseInstanceState>(); Boiler.GetChildren(m_nodeManager.SystemContext, children); RecursiveNodeIdChanger(children); List <IReference> references = new List <IReference>(); references.Add(new NodeStateReference(ReferenceTypeIds.Organizes, false, Boiler.NodeId)); m_parentNode.AddChild(Boiler); }