public void AddNode_NotAllowDuplicateNode() { var fsm = new FSM(); var stateA = new StateA(); fsm.AddNode(stateA); fsm.AddNode(stateA); Assert.IsTrue(fsm.NodeCount == 1); }
public void AddNode_NotAllowDuplicateNode() { var subFSM = new FSM(); var stateA = new StateA(); subFSM.AddNode(stateA); subFSM.AddNode(stateA); Assert.IsTrue(subFSM.NodeCount == 1); }
public void AddNode_NotAllowIntersectSubFSM() { var fsm = new FSM(); var subFSM = new SubFSM(); var stateA = new StateA(); subFSM.AddNode(stateA); fsm.AddNode(stateA); fsm.AddNode(subFSM); Assert.IsTrue(!fsm.Contains(subFSM)); }
public void AddNode_NotAllowOwnerNode() { var fsm = new FSM(); var subFSM = new SubFSM(); var stateA = new StateA(); fsm.AddNode(stateA); fsm.AddNode(subFSM); subFSM.AddNode(stateA); Assert.IsTrue(!subFSM.Contains(stateA)); }