Beispiel #1
0
        public void OnActionCellSteppedTest()
        {
            List <CardType> receivedEvents = new List <CardType>();
            ActionCell      cell           = new ActionCell(1, 11, 1, 1, "Chance", "Chance", CardType.Chance);

            cell.CellStepped += (object sender, ActionCellEvtArgs e) => receivedEvents.Add(e.TypeCard);

            cell.Step();
            Assert.AreEqual(1, receivedEvents.Count);
            Assert.AreEqual(cell.TypeCard, receivedEvents[0]);
        }