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