예제 #1
0
        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));
        }
예제 #2
0
        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);
        }