Exception de la class code
continuous-integration/drone/push Build is passing Details

master
parent e0ad921724
commit f96fe5ab9f

@ -19,7 +19,7 @@
public void AjouterJeton(Jeton jeton)
{
if (EstComplet())
throw new CodeTailleTableauLesJetonsCompletException();
throw new CodeTableauLesJetonsCompletException();
lesJetons[NbJetons++] = jeton;
}
@ -64,7 +64,7 @@
{
// Mon code est le code correct, l'autre code est celui qui teste
if (!autreCode.EstComplet())
throw new CodeTailleTableauLesJetonsCompletException();
throw new CodeTableauLesJetonsIncompletException();
Indicateur[] indicateurs = [];

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoreLibrary
{
public class CodeTableauLesJetonsCompletException : Exception
{
public CodeTableauLesJetonsCompletException() : base("Le tableau des jetons est plein")
{ }
}
}

@ -1,15 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoreLibrary
{
public class CodeTailleTableauLesJetonsCompletException : Exception
{
public CodeTailleTableauLesJetonsCompletException() : base("Le tableau des jetons est plein")
{ }
}
}
Loading…
Cancel
Save