예제 #1
0
        public async Task RunGameAfterInitializationIsComplete()
        {
            var session          = new CountdownSession(_singleGameList);
            var expectedRunCount = MockGame.RunCount + 1;
            await session.ExecuteUserInput("bar");

            Assert.AreEqual(MockGame.RunCount, expectedRunCount);
        }
예제 #2
0
        public async Task HaveInitializedGameBoardAfterSessionInitialized()
        {
            var session = new CountdownSession(_singleGameList);

            await session.ExecuteUserInput("foo");

            Assert.AreEqual(MockGame.InitializedGameBoardString, session.GameBoard);
        }