Ejemplo n.º 1
0
        public void ItStartsAndStopsABot()
        {
            BotRunner runner = new BotRunner();
            BotStub   bot    = new BotStub();

            runner.Start(bot);

            Thread.Sleep(millisecondsTimeout: 100);
            runner.Stop();

            Assert.Greater(bot.get_updates_numcalls, 0);
            Assert.Greater(bot.handle_update_numcalls, 0);
        }