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.
23 lines
703 B
23 lines
703 B
|
|
using CoreLibrary.Evenements;
|
|
using Xunit;
|
|
|
|
namespace UnitTesting
|
|
{
|
|
public class PartiePartieTermineeEventArgsUT
|
|
{
|
|
[Fact]
|
|
public void TestConstructeurValide()
|
|
{
|
|
IReadOnlyList<string> gagnants = new List<string>(["joueur1", "joueur2"]);
|
|
IReadOnlyList<string> perdants = new List<string>(["joueur3"]);
|
|
int tour = 10;
|
|
|
|
PartiePartieTermineeEventArgs evenement = new PartiePartieTermineeEventArgs(tour, gagnants, perdants);
|
|
Assert.Equal(tour, evenement.Tour);
|
|
Assert.Equal(gagnants, evenement.Gagnants);
|
|
Assert.Equal(perdants, evenement.Perdants);
|
|
}
|
|
}
|
|
}
|