Beispiel #1
0
        public void EngineReady_Accepts_Dash_Should_Become_ParsingAnArg()
        {
            // Init
            var initialState = new EngineReady();

            // Action
            var nextState = initialState.accept("-");

            // Assertion
            Assert.IsType <ParsingAnArg>(nextState);
        }
Beispiel #2
0
        public void EngineReady_Accepts_Space_Should_Become_EngineReady()
        {
            // Init
            var initialState = new EngineReady();

            // Action
            var nextState = initialState.accept(" ");

            // Assertion
            Assert.IsType <EngineReady>(nextState);
        }