Exemplo n.º 1
0
 public void Test1()
 {
     Assert.AreEqual(1941, RomanNumerals.Evaluate("MCMXLI"));
     Assert.AreEqual("MCMXLI", RomanNumerals.Convert(1941));
 }
Exemplo n.º 2
0
 public void Test3()
 {
     Assert.AreEqual(1398, RomanNumerals.Evaluate("MCCCXCVIII"));
     Assert.AreEqual("MCCCXCVIII", RomanNumerals.Convert(1398));
 }
Exemplo n.º 3
0
 public void Test4()
 {
     Assert.AreEqual(2882, RomanNumerals.Evaluate("MMDCCCLXXXII"));
     Assert.AreEqual("MMDCCCLXXXII", RomanNumerals.Convert(2882));
 }
Exemplo n.º 4
0
 public void Test2()
 {
     Assert.AreEqual(1159, RomanNumerals.Evaluate("MCLIX"));
     Assert.AreEqual("MCLIX", RomanNumerals.Convert(1159));
 }