public void testGetID() { DataGestion dataConn = new DataGestion(); String id = dataConn.getID("ALSTOM"); if (!id.Contains("ALO FP")) { throw new ArgumentOutOfRangeException("l'ID récupéré n'est pas bon :" + id); } }
public void testFakeGetID() { DataGestion dataConn = new DataGestion(); String id = dataConn.getID("test"); if (id != null) { throw new ArgumentOutOfRangeException("id non null dans tastFakeGetId"); } }