@Test public void testRoomInitial() { assertEquals('H', board.GetRoomCellAt(1, 5).getRoomInitial()); assertEquals('L', board.GetRoomCellAt(19, 24).getRoomInitial()); assertEquals('D', board.GetRoomCellAt(0, 24).getRoomInitial()); assertEquals('Z', board.GetRoomCellAt(16, 3).getRoomInitial()); assertEquals('P', board.GetRoomCellAt(23, 8).getRoomInitial()); }
@Test public void testDoorDirection() { RoomCell room; room = board.GetRoomCellAt(7, 5); assertTrue(room.isDoorway()); assertEquals(RoomCell.DoorDirection.DOWN, room.getDoorDirection()); room = board.GetRoomCellAt(23, 22); assertTrue(room.isDoorway()); assertEquals(RoomCell.DoorDirection.LEFT, room.getDoorDirection()); room = board.GetRoomCellAt(14, 21); assertTrue(room.isDoorway()); assertEquals(RoomCell.DoorDirection.RIGHT, room.getDoorDirection()); room = board.GetRoomCellAt(14, 0); assertTrue(room.isDoorway()); assertEquals(RoomCell.DoorDirection.UP, room.getDoorDirection()); }