Add: Decks Create Slots
This commit is contained in:
@@ -7,29 +7,32 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
class SlotTest {
|
||||
|
||||
@Test
|
||||
void SlotWrongArgument() { // TODO: Cos'è il parametro nMinPlayer? come va testato?
|
||||
void SlotWrongArgument() {
|
||||
assertDoesNotThrow(() -> {
|
||||
Slot sl1 = new Slot(0,0,1,1);
|
||||
Slot sl1 = new Slot('A');
|
||||
});
|
||||
assertDoesNotThrow(() -> {
|
||||
Slot sl1 = new Slot(0,1,0,1);
|
||||
Slot sl1 = new Slot('B');
|
||||
});
|
||||
assertDoesNotThrow(() -> {
|
||||
Slot sl1 = new Slot(1,0,0,1);
|
||||
Slot sl1 = new Slot('C');
|
||||
});
|
||||
assertDoesNotThrow(() -> {
|
||||
Slot sl1 = new Slot(1,1,0,1);
|
||||
Slot sl1 = new Slot('D');
|
||||
});
|
||||
assertDoesNotThrow(() -> {
|
||||
Slot sl1 = new Slot('E');
|
||||
});
|
||||
assertDoesNotThrow(() -> {
|
||||
Slot sl1 = new Slot('F');
|
||||
});
|
||||
assertDoesNotThrow(() -> {
|
||||
Slot sl1 = new Slot('G');
|
||||
});
|
||||
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Slot sl1 = new Slot('H');
|
||||
});
|
||||
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Slot sl1 = new Slot(1,0,1,1);
|
||||
});
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Slot sl1 = new Slot(0,1,1,1);
|
||||
});
|
||||
assertThrows(IllegalArgumentException.class, () -> {
|
||||
Slot sl1 = new Slot(1,1,1,1);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user