You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
857 B
39 lines
857 B
using MiniGames.Shared.Models;
|
|
using Xunit;
|
|
|
|
namespace MiniGamesTests
|
|
{
|
|
public class TicTacToeTest
|
|
{
|
|
TicTacToeBrett StandardBrett()
|
|
{
|
|
return new TicTacToeBrett();
|
|
}
|
|
|
|
SpielerModel[] StandardSpieler()
|
|
{
|
|
return new SpielerModel[]
|
|
{
|
|
new SpielerModel
|
|
{
|
|
SpielerName = "Spieler 1",
|
|
Punkte = 0
|
|
},
|
|
new SpielerModel
|
|
{
|
|
SpielerName = "Spieler 2",
|
|
Punkte = 1
|
|
}
|
|
};
|
|
}
|
|
|
|
TicTacToeModel StandardModel()
|
|
{
|
|
return new TicTacToeModel
|
|
{
|
|
Spieler = StandardSpieler(),
|
|
Brett = StandardBrett(),
|
|
};
|
|
}
|
|
}
|
|
}
|