assertEquals(new Coordenada('D',1),l.get(l.size()-1).getCoordenada());
}
@Test
public final void testGetSaltosCaballo() throws ExcepcionCoordenadaErronea {
Coordenada c1 = new Coordenada('A',1);
Coordenada c2 = new Coordenada('H',8);
Coordenada c3 = new Coordenada('A',4);
Coordenada c4 = new Coordenada('H',4);
Coordenada c5 = new Coordenada('D',4);
Casilla cas1 = t5.getCasillaAt(c1);
List<Casilla> l = t5.getSaltosCaballo(cas1);
assertEquals(2,l.size());
assertEquals(new Coordenada('B',3),l.get(0).getCoordenada());
assertEquals(new Coordenada('C',2),l.get(1).getCoordenada());
cas1 = t5.getCasillaAt(c2);
l = t5.getSaltosCaballo(cas1);
assertEquals(2,l.size());
assertEquals(new Coordenada('G',6),l.get(0).getCoordenada());
assertEquals(new Coordenada('F',7),l.get(1).getCoordenada());
cas1 = t5.getCasillaAt(c3);
l = t5.getSaltosCaballo(cas1);
assertEquals(4,l.size());
assertEquals(new Coordenada('B',6),l.get(0).getCoordenada());
assertEquals(new Coordenada('B',2),l.get(l.size()-1).getCoordenada());
cas1 = t5.getCasillaAt(c4);
l = t5.getSaltosCaballo(cas1);
assertEquals(4,l.size());
assertEquals(new Coordenada('G',2),l.get(0).getCoordenada());
assertEquals(new Coordenada('G',6),l.get(l.size()-1).getCoordenada());
cas1 = t5.getCasillaAt(c5);
l = t5.getSaltosCaballo(cas1);
assertEquals(8,l.size());
assertEquals(new Coordenada('E',6),l.get(0).getCoordenada());
assertEquals(new Coordenada('C',6),l.get(l.size()-1).getCoordenada());
}