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/JetonUT.cs

21 lines
472 B

using CoreLibrary.Core;
using Xunit;
namespace UnitTesting
{
public class JetonUT
{
[Fact]
public void TestConstructeurValide()
{
Couleur[] listeCouleurs = (Couleur[])Enum.GetValues(typeof(Couleur));
for (int i=0; i<listeCouleurs.Length; ++i)
{
Jeton jeton = new Jeton(listeCouleurs[i]);
Assert.Equal(listeCouleurs[i], jeton.Couleur);
}
}
}
}