Ejemplo n.º 1
0
        public void StateCanThrowUndefinedTransitionException()
        {
            var state = new StatedTestObjectStates.Initial();

            Assert.Throws <UndefinedTransitionException>(() => state.UndefinedTransition("Test"));
        }
Ejemplo n.º 2
0
        public void StateCanThrowTransitionFailedException()
        {
            var state = new StatedTestObjectStates.Initial();

            Assert.Throws <TransitionFailedException>(() => state.FaíledTransition("Test"));
        }
Ejemplo n.º 3
0
        public void InitialStateName()
        {
            var state = new StatedTestObjectStates.Initial();

            Assert.AreEqual("Initial", state.ToString());
        }