incrementation n'a pas lieu UT
continuous-integration/drone/push Build is passing Details

master
Céleste BARBOSA 11 months ago
parent 2989e1c319
commit b8d3ba4b7f

@ -28,6 +28,14 @@ namespace UnitTesting
{
ReglesClassiques regles = new ReglesClassiques();
Assert.Throws<PartieNonCommenceeException>(() => regles.PasserLaMain());
Type type = typeof(ReglesClassiques);
FieldInfo? fieldInfo = type.GetField("joueurCourant", BindingFlags.NonPublic | BindingFlags.Instance);
Assert.NotNull(fieldInfo);
int? joueurCourant = (int?)fieldInfo.GetValue(regles);
Assert.Null(joueurCourant);
}
[Fact]

Loading…
Cancel
Save