diff --git a/BibliothequeClasses/JetonIndicateur.cs b/BibliothequeClasses/JetonIndicateur.cs index 9da05aa..e5b9c12 100644 --- a/BibliothequeClasses/JetonIndicateur.cs +++ b/BibliothequeClasses/JetonIndicateur.cs @@ -13,7 +13,7 @@ namespace BibliothequeClasses { if(couleur < Couleur.Noir) { - throw new ArgumentException("La couleur doit etre noir ou blanche"); + throw new ArgumentException("La couleur doit etre Noir ou Blanche"); } diff --git a/Console/Program.cs b/Console/Program.cs index 5f28270..f3ab846 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -1 +1,24 @@ - \ No newline at end of file +using System; +using BibliothequeClasses; + + +public class Programme +{ + static void Main(string[] args) + { + try + { + JetonIndicateur ji1 = new JetonIndicateur(Couleur.Noir); + Console.WriteLine(ji1.Couleur); + Jeton j1 = new JetonIndicateur(Couleur.Jaune); + Console.WriteLine(j1.Couleur); + + } + catch (ArgumentException ex) + { + Console.WriteLine(ex.ToString()); + } + + } + +} \ No newline at end of file