public void GetSubMachineIDExistant_ReturnsNotNullAndFromLayerID()
        {
            SubStateMachine subStateMachine = stateMachine.GetSubStateMachine(SubStateMachineSelection.ID,
                                                                              "SubStateIDToLastAddedLayer", StateMachineBuilder.layerWithEnum);

            Assert.IsNotNull(subStateMachine);
            Assert.AreEqual(subStateMachine.GetParentLayer().iD, StateMachineBuilder.layerWithEnum);
        }
        public void GetSubMachineNameExistant_ReturnsNotNullAndFromLayerID()
        {
            SubStateMachine subStateMachine = stateMachine.GetSubStateMachine(SubStateMachineSelection.Name,
                                                                              "SubMachineNameToLayerByObjectIsLoop", StateMachineBuilder.layerWithEnum);

            Assert.IsNotNull(subStateMachine);
            Assert.AreEqual(subStateMachine.GetParentLayer().iD, StateMachineBuilder.layerWithEnum);
        }
        public void GetSubMachineIDExistant_ReturnsNotNullAndFromLastLayer()
        {
            SubStateMachine subStateMachine = stateMachine.GetSubStateMachine(SubStateMachineSelection.ID,
                                                                              "SubStateIDToLayerByObject", InListLocation.Last);

            Assert.IsNotNull(subStateMachine);
            Assert.AreEqual(subStateMachine.GetParentLayer().iD, StateMachineBuilder.layerWithID);
        }