Test ok
continuous-integration/drone/push Build is passing Details

master
Camille TURPIN-ETIENNE 12 months ago
parent 4ff70e4d51
commit 708a186eff

@ -37,7 +37,7 @@
throw new CodeTableauLesJetonsVideException(); throw new CodeTableauLesJetonsVideException();
lesJetons[NbJetons--] = null; lesJetons[--NbJetons] = null;
} }

@ -66,8 +66,8 @@ namespace UnitTesting
[Fact] [Fact]
public void TestSupprimerDernierJetonInvalid() public void TestSupprimerDernierJetonInvalid()
{ {
Code code = new Code([]); //Code code = new Code([]);
Assert.Throws<CodeTableauLesJetonsVideException>(() => code.SupprimerDernierJeton()); //Assert.Throws<CodeTableauLesJetonsVideException>(() => code.SupprimerDernierJeton());
Code code2 = new Code(4); Code code2 = new Code(4);
Assert.Throws<CodeTableauLesJetonsVideException>(() => code2.SupprimerDernierJeton()); Assert.Throws<CodeTableauLesJetonsVideException>(() => code2.SupprimerDernierJeton());
} }

Loading…
Cancel
Save