Esempio n. 1
0
            public void AcceptanceTestsPassed()
            {
                ICanRunAcceptanceTests state = GetState <ICanRunAcceptanceTests>();

                if (state == null)
                {
                    Console.WriteLine("Cannot mark the code as done from state: {0}", State.Name);
                    return;
                }

                state.AcceptanceTestsPassed();
            }
Esempio n. 2
0
            public void AcceptanceTestsFail()
            {
                ICanRunAcceptanceTests state = GetState <ICanRunAcceptanceTests>();

                if (state == null)
                {
                    Console.WriteLine("Cannot fail the acceptance tests from state: {0}", State.Name);
                    return;
                }

                state.AcceptanceTestsFail();
            }