Ejemplo n.º 1
0
        public void Test_MarkPosition_Moved()
        {
            BlockModel b = SetUpBlockLeftBound();

            b.MoveDown();
            b.MoveDown();

            b.MoveRight();
            b.MoveRight();
            b.MoveRight();

            b.MarkPosition();

            Assert.AreEqual(grid[2, 3], 1);
        }
Ejemplo n.º 2
0
        public void Test_Right_Bound_Movement()
        {
            BlockModel b = SetUpBlockRightBound();

            b.MoveRight();

            Assert.AreEqual(b.GridX, 4);
        }
Ejemplo n.º 3
0
        public void Test_BlockModel_Right_1Time()
        {
            BlockModel b = SetUpBlockLeftBound();

            b.MoveRight();

            Assert.AreEqual(b.GridX, 1);
            Assert.AreEqual(b.Left, 34);
        }