je cherche qui cover
continuous-integration/drone/push Build is passing Details

master
Céleste BARBOSA 11 months ago
parent 88385c4e91
commit e1014f5e08

@ -169,13 +169,13 @@ namespace UnitTesting
regles.CommencerLaPartie(); regles.CommencerLaPartie();
regles.PasserLaMain(); regles.PasserLaMain();
Type type = typeof(ReglesClassiques); /*Type type = typeof(ReglesClassiques);
FieldInfo? fieldInfo = type.GetField("joueurCourant", BindingFlags.NonPublic | BindingFlags.Instance); FieldInfo? fieldInfo = type.GetField("joueurCourant", BindingFlags.NonPublic | BindingFlags.Instance);
Assert.NotNull(fieldInfo); Assert.NotNull(fieldInfo);
int? joueurCourant = (int?)fieldInfo.GetValue(regles); int? joueurCourant = (int?)fieldInfo.GetValue(regles);
Assert.Equal(1, joueurCourant); Assert.Equal(1, joueurCourant);*/
bool result = regles.EstTerminee(); bool result = regles.EstTerminee();

Loading…
Cancel
Save