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