Exemplo n.º 1
0
        public void AddActorTest()
        {
            var board = new BsBoard(5);
            var mock  = new Mock <IBsActor>();

            board.Add(mock.Object, 0);
            Assert.AreEqual(4, board.FreeSlotsCount());
            var freeSlots = board.FreeSlots();

            Assert.AreEqual(4, freeSlots.Count());
            board.Add(mock.Object, 1);
            board.Add(mock.Object, 2);
            board.Add(mock.Object, 3);
            board.Add(mock.Object, 4);
            Assert.AreEqual(0, board.FreeSlotsCount());
            Assert.AreEqual(0, board.FreeSlots().Count());
        }
Exemplo n.º 2
0
        public void InitBoardTest()
        {
            var board = new BsBoard(5);

            Assert.AreEqual(5, board.SlotsCount());
            Assert.AreEqual(5, board.FreeSlotsCount());
            Assert.AreEqual(5, board.FreeSlots().Count());
        }