public void FindChildTest()
 {
     using (TestBaseInstanceState _nodeState = new TestBaseInstanceState(null, nameof(_nodeState)))
     {
         BaseInstanceState _child = _nodeState.FindChildTest(new TestSystemContext(), null, true, null);
         Assert.IsNull(_child);
     }
 }
 public void GetChildrenTest()
 {
     using (BaseInstanceState _parentState = new TestBaseInstanceState(null, nameof(_parentState)))
         using (BaseInstanceState _childState = new TestBaseInstanceState(null, nameof(_childState)))
         {
             _parentState.AddChild(_childState);
             List <BaseInstanceState> _children = new List <BaseInstanceState>();
             _parentState.GetChildren(_children);
             Assert.AreEqual <int>(1, _children.Count);
         }
 }
 public void AddChildTest()
 {
     using (BaseInstanceState _parentState = new TestBaseInstanceState(null, nameof(_parentState)))
         using (BaseInstanceState _childState = new TestBaseInstanceState(_parentState, nameof(_childState)))
         {
             _parentState.AddChild(_childState);
             Assert.IsNotNull(_parentState.FindChild(null, new List <QualifiedName>()
             {
                 _childState.BrowseName
             }, 0));
         }
 }