Ejemplo n.º 1
0
        public void Multiple_expressions_per_event_should_run_in_order()
        {
            ExampleStateMachine example = new ExampleStateMachine();

            example.SubmitCommentCard(new CommentCard {
                IsComplaint = true
            });

            Assert.AreEqual(ExampleStateMachine.WaitingForManager, example.CurrentState);

            example.BurnCommentCard();

            Assert.AreEqual(ExampleStateMachine.Completed, example.CurrentState);
        }