|
|
@ -102,7 +102,7 @@ namespace UnitTesting
|
|
|
|
code.AjouterJeton(jetonsAttendus[2]);
|
|
|
|
code.AjouterJeton(jetonsAttendus[2]);
|
|
|
|
ObservableCollection<Jeton> lesJetons = code.Jetons;
|
|
|
|
ObservableCollection<Jeton> lesJetons = code.Jetons;
|
|
|
|
|
|
|
|
|
|
|
|
Assert.Equal(jetonsAttendus.Length, lesJetons.Count());
|
|
|
|
Assert.Equal(jetonsAttendus.Length, lesJetons.Count);
|
|
|
|
|
|
|
|
|
|
|
|
int index = 0;
|
|
|
|
int index = 0;
|
|
|
|
foreach (Jeton jetonAttendu in jetonsAttendus)
|
|
|
|
foreach (Jeton jetonAttendu in jetonsAttendus)
|
|
|
@ -162,7 +162,7 @@ namespace UnitTesting
|
|
|
|
|
|
|
|
|
|
|
|
IReadOnlyList<Indicateur> indicateurs = code1.Comparer(code2);
|
|
|
|
IReadOnlyList<Indicateur> indicateurs = code1.Comparer(code2);
|
|
|
|
|
|
|
|
|
|
|
|
Assert.Equal(3, indicateurs.Count());
|
|
|
|
Assert.Equal(3, indicateurs.Count);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
[Fact]
|
|
|
@ -245,7 +245,10 @@ namespace UnitTesting
|
|
|
|
Code code = new Code(1);
|
|
|
|
Code code = new Code(1);
|
|
|
|
code.AjouterJeton(new Jeton());
|
|
|
|
code.AjouterJeton(new Jeton());
|
|
|
|
|
|
|
|
|
|
|
|
code.Comparer(code);
|
|
|
|
IReadOnlyList<Indicateur> indicateurs = code.Comparer(code);
|
|
|
|
|
|
|
|
Assert.NotNull(indicateurs);
|
|
|
|
|
|
|
|
Assert.Equal(1, indicateurs.Count);
|
|
|
|
|
|
|
|
Assert.Equal(Indicateur.BonnePlace, indicateurs.First());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|