gruppe06-hufflepuff-projekt.../test/GamefieldTest.java

36 lines
871 B
Java
Raw Normal View History

import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class GamefieldTest {
private Gamefield gamefield = new Gamefield();
@Test
void setField() {
gamefield.setField(2, 1);
gamefield.setField(4, 2);
assertEquals(0, gamefield.getField(1));
assertEquals(1, gamefield.getField(2));
assertEquals(0, gamefield.getField(3));
assertEquals(2, gamefield.getField(4));
assertEquals(0, gamefield.getField(5));
assertEquals(0, gamefield.getField(6));
assertEquals(0, gamefield.getField(7));
assertEquals(0, gamefield.getField(8));
assertEquals(0, gamefield.getField(9));
assertEquals(2, gamefield.countSetFields());
2021-10-09 16:18:22 +02:00
}
@Test
void getField() {
}
@Test
void outputField() {
gamefield.outputField();
}
}