Skip to content
Snippets Groups Projects
Commit 7cf2a1ef authored by LABOUREL Arnaud's avatar LABOUREL Arnaud
Browse files

Added tests for UniformTileGenerator

parent e8bb5347
No related branches found
No related tags found
No related merge requests found
package model;
import javafx.scene.paint.Color;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class UniformTileGeneratorTest {
@Test
void testNextTile(){
TileGenerator tileGenerator = new UniformTileGenerator(Color.RED);
Tile redTile = new UniformTile(new ColoredSide(Color.RED));
for(int index = 0; index < 10; index++)
assertThat(tileGenerator.nextTile(EmptySquare.EMPTY_SQUARE)).isEqualTo(redTile);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment