|
@ -6,9 +6,9 @@ namespace MiniGamesTests |
|
|
public class TicTacToeBrettTest |
|
|
public class TicTacToeBrettTest |
|
|
{ |
|
|
{ |
|
|
public TicTacToeBrett TestBrett( |
|
|
public TicTacToeBrett TestBrett( |
|
|
int a = -1, int b = -1, int c = -1, |
|
|
|
|
|
int d = -1, int e = -1, int f = -1, |
|
|
|
|
|
int g = -1, int h = -1, int i = -1 |
|
|
|
|
|
|
|
|
int a = TicTacToeBrett.LEER, int b = TicTacToeBrett.LEER, int c = TicTacToeBrett.LEER, |
|
|
|
|
|
int d = TicTacToeBrett.LEER, int e = TicTacToeBrett.LEER, int f = TicTacToeBrett.LEER, |
|
|
|
|
|
int g = TicTacToeBrett.LEER, int h = TicTacToeBrett.LEER, int i = TicTacToeBrett.LEER |
|
|
) |
|
|
) |
|
|
{ |
|
|
{ |
|
|
return new( |
|
|
return new( |
|
@ -26,7 +26,13 @@ namespace MiniGamesTests |
|
|
{ |
|
|
{ |
|
|
// arrange
|
|
|
// arrange
|
|
|
TicTacToeBrett brett = new(); |
|
|
TicTacToeBrett brett = new(); |
|
|
TicTacToeBrett erwartetesBrett = TestBrett(-1, -1, -1, -1, 0); |
|
|
|
|
|
|
|
|
TicTacToeBrett erwartetesBrett = TestBrett( |
|
|
|
|
|
TicTacToeBrett.LEER, |
|
|
|
|
|
TicTacToeBrett.LEER, |
|
|
|
|
|
TicTacToeBrett.LEER, |
|
|
|
|
|
TicTacToeBrett.LEER, |
|
|
|
|
|
0 |
|
|
|
|
|
); |
|
|
int pos = 4; |
|
|
int pos = 4; |
|
|
int wert = 0; |
|
|
int wert = 0; |
|
|
bool erwartetGesetzt = true; |
|
|
bool erwartetGesetzt = true; |
|
|