예제 #1
0
        public void Test_MarkPosition_Right_Bound()
        {
            BlockModel b = SetUpBlockRightBound();

            b.MarkPosition();

            Assert.AreEqual(grid[0, 4], 1);
        }
예제 #2
0
        public void Test_MarkPosition_Left_Bound()
        {
            BlockModel b = SetUpBlockLeftBound();

            b.MarkPosition();

            Assert.AreEqual(grid[0, 0], 1);
        }
예제 #3
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);
        }