projet-court-programmation-.../allumettes/TestPartieSafe.java

25 lines
595 B
Java
Raw Normal View History

2023-06-20 19:05:21 +00:00
package allumettes;
import org.junit.*;
public class TestPartieSafe {
PartieSafe game = new PartieSafe(new Partie(10));
@Test(expected = OperationInterditeException.class)
public void TestRetirerNegatif() throws CoupInvalideException {
game.retirer(-1);
}
@Test(expected = OperationInterditeException.class)
public void TestRetirerNul() throws CoupInvalideException {
game.retirer(0);
}
@Test(expected = OperationInterditeException.class)
public void TestRetirerPositif() throws CoupInvalideException {
game.retirer(1);
}
}