|
@ -282,5 +282,23 @@ namespace MiniGamesTests |
|
|
// assert
|
|
|
// assert
|
|
|
Assert.Equal(erwarteterGewinner, erhaltenerGewinner); |
|
|
Assert.Equal(erwarteterGewinner, erhaltenerGewinner); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void Gewinner_HorizontaleReihe3Test() |
|
|
|
|
|
{ |
|
|
|
|
|
// arrange
|
|
|
|
|
|
TicTacToeBrett brett = TestBrett( |
|
|
|
|
|
TicTacToeBrett.LEER, TicTacToeBrett.LEER, 4, |
|
|
|
|
|
TicTacToeBrett.LEER, TicTacToeBrett.LEER, 4, |
|
|
|
|
|
TicTacToeBrett.LEER, TicTacToeBrett.LEER, 4 |
|
|
|
|
|
); |
|
|
|
|
|
int erwarteterGewinner = 4; |
|
|
|
|
|
|
|
|
|
|
|
// act
|
|
|
|
|
|
int erhaltenerGewinner = brett.Gewinner(); |
|
|
|
|
|
|
|
|
|
|
|
// assert
|
|
|
|
|
|
Assert.Equal(erwarteterGewinner, erhaltenerGewinner); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |