public void 右回転でボードの一番下に衝突するテスト()
        {
            var controlBlocks = new ControlBlocks(5, 0, IBlocks);

            controlBlocks.RightSpin();
            controlBlocks = SpinRightService.Execute(controlBlocks);
            Assert.AreEqual(5, controlBlocks.X);
            Assert.AreEqual(2, controlBlocks.Y);
        }
Exemplo n.º 2
0
        public void 左回転テストt()
        {
            var controlBlocks   = new ControlBlocks(5, 15, IBlocks);
            var IBlocksLeftSpin = IBlocks.LeftSpin();

            controlBlocks.LeftSpin();
            Assert.AreEqual(IBlocksLeftSpin, controlBlocks.Blocks);

            var controlBlocks2   = new ControlBlocks(5, 15, IBlocks);
            var IBlocksRightSpin = IBlocks.RightSpin();

            controlBlocks2.RightSpin();
            Assert.AreEqual(IBlocksRightSpin, controlBlocks2.Blocks);
        }