@Test public void testFirstTile() { Tile t = Tile.getInitialTile(); assertEquals(null, t.getNorthTerrain()); assertEquals(ROAD, t.getEastTerrain()); assertEquals(null, t.getSouthTerrain()); assertEquals(ROAD, t.getWestTerrain()); assertEquals(CASTLE, t.getNETerrain()); assertEquals(CASTLE, t.getNWTerrain()); assertEquals(FARM, t.getWNTerrain()); assertEquals(FARM, t.getWSTerrain()); assertEquals(FARM, t.getSWTerrain()); assertEquals(FARM, t.getSETerrain()); assertEquals(FARM, t.getESTerrain()); assertEquals(FARM, t.getENTerrain()); }
@Test public void testTile() { Tile t = new Tile("nrnrrccffffffn"); assertEquals(null, t.getNorthTerrain()); assertEquals(ROAD, t.getEastTerrain()); assertEquals(null, t.getSouthTerrain()); assertEquals(ROAD, t.getWestTerrain()); assertEquals(CASTLE, t.getNETerrain()); assertEquals(CASTLE, t.getNWTerrain()); assertEquals(FARM, t.getWNTerrain()); assertEquals(FARM, t.getWSTerrain()); assertEquals(FARM, t.getSWTerrain()); assertEquals(FARM, t.getSETerrain()); assertEquals(FARM, t.getESTerrain()); assertEquals(FARM, t.getENTerrain()); }