static void Main(string[] args) { while (true) { try { Console.WriteLine(); Console.Write("Enter a romain number : "); Command = Console.ReadLine(); // Command de sortie if (Command.ToLower() == "exit") break; // Traitement de la valeur donner Scribe scrib = new Scribe(); int ArabicNumber = scrib.XXX(Command); Console.WriteLine(); Console.WriteLine("The traduction of : {0} is {1}", Command, ArabicNumber); } catch (Exception ex) { Console.WriteLine(ex.Message); } } }
protected void AssertEquals(int expected, string romain) { var scribe = new Scribe(); var res = scribe.XXX(romain); Assert.AreEqual(expected, res); }