diff --git a/BlazorSolution/MiniGamesTests/TicTacToeTest.cs b/BlazorSolution/MiniGamesTests/TicTacToeTest.cs index 0f14cf3..e98daaa 100644 --- a/BlazorSolution/MiniGamesTests/TicTacToeTest.cs +++ b/BlazorSolution/MiniGamesTests/TicTacToeTest.cs @@ -120,5 +120,25 @@ namespace MiniGamesTests // assert Assert.Equal(spiel.GewinnerIndex, erwarteterGewinnerIndex); } + + [Fact] + public void SpielerInput_KeinGewinnerTest() + { + // arrange + TicTacToe spiel = StandardSpiel(); + spiel.AktiverSpielerIndex = 0; + int erwarteterGewinnerIndex = -1; + + // act + spiel.SpielerInput(0); + spiel.SpielerInput(3); + spiel.SpielerInput(1); + spiel.SpielerInput(4); + spiel.SpielerInput(5); + spiel.SpielerInput(2); + + // assert + Assert.Equal(spiel.GewinnerIndex, erwarteterGewinnerIndex); + } } }