예제 #1
0
        public void TestHandlerCreatesTraderFromResponse()
        {
            Trader trader = new Trader("Trader0");

            stub.SendMessage(Message.traderIDBroadCast(trader.ID));
            Thread.Sleep(300);
            Trader current = handler.Trader;

            Assert.AreEqual(trader, handler.Trader);
            Assert.IsTrue(Program.Market.HasTrader(trader));
        }