Initial Commit

This commit is contained in:
tamara1311
2026-04-13 17:44:27 +02:00
commit d62d6132d2
18 changed files with 505 additions and 0 deletions

35
test/GameTest.java Normal file
View File

@@ -0,0 +1,35 @@
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class GameTest {
@Test
void getInstance_providesInstance_isNotEmpty() {
//Arrange
Game game;
//Act
game = Game.getInstance(10,10);
//Assert
assertNotNull(game);
}
@Test
void gameOver_getsBoolean_isFalse() {
//Arrange
Game game = Game.getInstance(10,10);
boolean expected = false;
boolean actual;
//Act
actual = game.gameOver();
//Assert
assertEquals(expected, actual);
}
}