public void GetArenaSize() { var testArena = new Arena(); Assert.AreEqual(testArena.Width, 8); Assert.AreEqual(testArena.Height, 13); }
public void Init() { _arena = new Arena(); _block1 = new Block(Block.BlockTypeEnum.Green) {ArenaXPosition = 2, ArenaYPosition = 1}; _arena.AddBlock(_block1, Block.BlockStatusEnum.Stopped); _block2 = new Block(Block.BlockTypeEnum.Green) {ArenaXPosition = 3, ArenaYPosition = 1}; _arena.AddBlock(_block2, Block.BlockStatusEnum.Stopped); _block3 = new Block(Block.BlockTypeEnum.Green) {ArenaXPosition = 4, ArenaYPosition = 1}; _arena.AddBlock(_block3, Block.BlockStatusEnum.Stopped); _block4 = new Block(Block.BlockTypeEnum.Green) {ArenaXPosition = 3, ArenaYPosition = 2}; _arena.AddBlock(_block4, Block.BlockStatusEnum.Stopped); _block5 = new Block(Block.BlockTypeEnum.Green) {ArenaXPosition = 3, ArenaYPosition = 3}; _arena.AddBlock(_block5, Block.BlockStatusEnum.Stopped); }
public void ArenaBlockStartPositions() { var testArena = new Arena(); Assert.AreEqual(testArena.Block1StartPosition.X, 4); Assert.AreEqual(testArena.Block1StartPosition.Y, 14); Assert.AreEqual(testArena.Block2StartPosition.X, 5); Assert.AreEqual(testArena.Block2StartPosition.Y, 14); }