25 lines
595 B
Java
25 lines
595 B
Java
|
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);
|
||
|
}
|
||
|
|
||
|
}
|