public void FindChildTest() { using (BoilerState _boilerState = new BoilerState(null, "browseName")) { Assert.IsNotNull(_boilerState.FindChild(null, new List <QualifiedName>() { _boilerState.CustomController.BrowseName }, 0)); Assert.IsNotNull(_boilerState.FindChild(null, new List <QualifiedName>() { _boilerState.FlowController.BrowseName }, 0)); Assert.IsNotNull(_boilerState.FindChild(null, new List <QualifiedName>() { _boilerState.Drum.BrowseName }, 0)); Assert.IsNotNull(_boilerState.FindChild(null, new List <QualifiedName>() { _boilerState.InputPipe.BrowseName }, 0)); Assert.IsNotNull(_boilerState.FindChild(null, new List <QualifiedName>() { _boilerState.LevelController.BrowseName }, 0)); Assert.IsNotNull(_boilerState.FindChild(null, new List <QualifiedName>() { _boilerState.OutputPipe.BrowseName }, 0)); Assert.IsNotNull(_boilerState.FindChild(null, new List <QualifiedName>() { _boilerState.Simulation.BrowseName }, 0)); } }
public void Constructor2Test() { using (BoilerState _boilerState = new BoilerState(null, "browseName")) { Assert.IsNotNull(_boilerState.BrowseName); Assert.AreEqual <string>("browseName", _boilerState.BrowseName.Name); Assert.IsFalse(_boilerState.BrowseName.NamespaceIndexSpecified); Assert.IsNotNull(_boilerState.CustomController); Assert.IsNotNull(_boilerState.Drum); Assert.IsNotNull(_boilerState.FlowController); Assert.IsNotNull(_boilerState.InputPipe); Assert.IsNotNull(_boilerState.LevelController); Assert.IsNotNull(_boilerState.OutputPipe); Assert.IsNull(_boilerState.Parent); Assert.IsNotNull(_boilerState.Simulation); Assert.AreEqual <NodeClass>(NodeClass.Object_1, _boilerState.NodeClass); Assert.AreEqual <NodeStateChangeMasks>(NodeStateChangeMasks.Children, _boilerState.ChangeMasks); Assert.IsNotNull(_boilerState.FindChild(null, new List <QualifiedName>() { _boilerState.CustomController.BrowseName }, 0)); } }