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.
mastermind/Sources/UnitTesting/PartieUT.cs

34 lines
874 B

using CoreLibrary;
using CoreLibrary.Exceptions;
using System.Reflection;
using Xunit;
namespace UnitTesting
{
public class PartieUT
{
[Fact]
public void TestJouer()
{
//ReglesClassiques regles = new ReglesClassiques();
//Partie partie = new Partie(regles);
//partie.Jouer();
//Assert.True(regles.EstTerminee());
//IEnumerable<Joueur> gagnants = regles.Gagnants();
//IEnumerable<Joueur> perdants = regles.Perdants();
//Assert.NotEmpty(gagnants);
//Assert.All(gagnants, joueur => Assert.DoesNotContain(joueur, perdants));
//foreach (var joueur in regles.joueurs())
//{
//Assert.NotNull(joueur.Plateau);
//Assert.True(joueur.Plateau.EstComplet());
//}
}
}
}