Example #1
0
 public void Clear()
 {
     //using (NUnit.Framework.Randomizer.Use(new FixedRandom(new[] { 0.8f, 0.0f })))
     //{
     grid.AffixBlock(new Block(displayMode, content, Vector2D.One));
     Assert.AreEqual(4, ControllerTests.CountBricks(grid));
     AdvanceTimeAndUpdateEntities();
     grid.Clear();
     Assert.AreEqual(0, ControllerTests.CountBricks(grid));
     //}
 }
Example #2
0
 public void AffixBlocksWhichFillOneRow()
 {
     Assert.AreEqual(0,
                     AffixBlocks(grid, new[] { new Vector2D(0, 18), new Vector2D(4, 18), new Vector2D(7, 18) }));
     //using (NUnit.Framework.Randomizer.Use(new FixedRandom(IBlock)))
     //{
     Assert.AreEqual(1, grid.AffixBlock(new Block(displayMode, content, new Vector2D(11, 15))));
     Assert.AreEqual(3, ControllerTests.CountBricks(grid));
     Assert.IsNotNull(grid.bricks[11, 16]);
     Assert.IsNotNull(grid.bricks[11, 17]);
     Assert.IsNotNull(grid.bricks[11, 18]);
     //}
 }