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.
24 lines
650 B
24 lines
650 B
using CoreLibrary;
|
|
using CoreLibrary.Events;
|
|
using Xunit;
|
|
|
|
namespace UnitTesting
|
|
{
|
|
public class PartieTermineeEventArgsUT
|
|
{
|
|
[Fact]
|
|
public void TestConstructeurValide()
|
|
{
|
|
Plateau plateau = new Plateau(4, 12);
|
|
Joueur[] gagnants = [new Joueur("Pauline", plateau), new Joueur("Camille", plateau)];
|
|
Joueur[] perdants = [new Joueur("Céleste", plateau)];
|
|
|
|
PartieTermineeEventArgs evenement = new PartieTermineeEventArgs(gagnants, perdants);
|
|
|
|
Assert.Equal(gagnants, evenement.Gagnants);
|
|
Assert.Equal(perdants, evenement.Perdants);
|
|
}
|
|
|
|
}
|
|
}
|