public void ExplicitState_IsAddedToStates_ByAdd() { var state = new ExplicitState(); var newState = new ExplicitState(); var fsm = new FinitiStateMachine.FiniteStateMachine(state); fsm.Add(newState); Assert.IsTrue(fsm.States.Contains(newState)); }
public void ExplicitStateStateMachine_IsSet_ByAdd() { var state = new ExplicitState(); var newState = new ExplicitState(); var fsm = new FinitiStateMachine.FiniteStateMachine(state); fsm.Add(newState); Assert.AreEqual(fsm, newState.StateMachine); }