Esempio n. 1
0
        public void MoveToBusyCell()
        {
            var field = CreateField();
            var cell  = field.GetCell(1, 1);
            var Light = new TankLight();
            var Spatg = new TankSpatg();

            Light.GetFieldLocation().ToCell(cell);
            Spatg.GetFieldLocation().ToCell(cell);
        }
Esempio n. 2
0
        public void GettingAllCards()
        {
            var field = CreateField();
            var Light = new TankLight();
            var Spatg = new TankSpatg();
            var Heavy = new TankHeavy();

            Light.GetFieldLocation().ToCell(field.GetCell(1, 1));
            Spatg.GetFieldLocation().ToCell(field.GetCell(2, 1));

            var allCards = field.GetAllCards();

            Assert.AreEqual(2, allCards.Count);
            Assert.IsTrue(allCards.Contains(Light));
            Assert.IsTrue(allCards.Contains(Spatg));
        }