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.
46 lines
1008 B
46 lines
1008 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
using MiniGames.Shared.Models;
|
|
using MiniGames.Client.ViewModel;
|
|
|
|
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(),
|
|
};
|
|
}
|
|
}
|
|
}
|