Exemplo n.º 1
0
        public void Test_Initialization()
        {
            MoverTable moverTable = new MoverTable(10, 1000);

            Assert.AreEqual(10, moverTable.MoverList.Count);

            for (int i = 0; i < 10; i++)
            {
                Assert.AreEqual(i, moverTable.MoverList[i].Id);
            }
        }
Exemplo n.º 2
0
        public void Test_Mover1Shifted()
        {
            MoverTable moverTable = new MoverTable(10, 1000);

            moverTable.Move(0, -20);

            Assert.AreEqual(true, moverTable.CanMove(0));

            for (int i = 1; i < 10; i++)
            {
                Assert.AreEqual(false, moverTable.CanMove(i));
            }
        }