Exemplo n.º 1
0
        public void game_should_start_listening_to_server(
            [Frozen] IGameConnector gameConnector,
            Game game)
        {
            game.Start();

            gameConnector.Received().Connect();
        }
Exemplo n.º 2
0
        public void TestGameStart(
            [Frozen] IGameConnector gameConnector, 
            [Frozen] IDecisionMaker maker, 
            string board, Moves nextMove, Game game)
        {
            maker.NextMove(board).Returns(nextMove);
            game.Start();

            gameConnector.NewPosition += Raise.EventWith(new Object(), new NewPositionArgs(board));

            gameConnector.Received().NextMove(nextMove.ToString());
        }