Exemple #1
0
 public void ToRomanTest_When40_50_90_100_ThenXL_L_XC_C_()
 {
     Assert.AreEqual("XL", RomanNumeralsConverter.ToRoman(40));
     Assert.AreEqual("L", RomanNumeralsConverter.ToRoman(50));
     Assert.AreEqual("XC", RomanNumeralsConverter.ToRoman(90));
     Assert.AreEqual("C", RomanNumeralsConverter.ToRoman(100));
 }
Exemple #2
0
 public void ToRomanTest_When400_500_900_1000_ThenCD_D_CM_M()
 {
     Assert.AreEqual("CD", RomanNumeralsConverter.ToRoman(400));
     Assert.AreEqual("D", RomanNumeralsConverter.ToRoman(500));
     Assert.AreEqual("CM", RomanNumeralsConverter.ToRoman(900));
     Assert.AreEqual("M", RomanNumeralsConverter.ToRoman(1000));
 }
Exemple #3
0
 public void ToRomanTest_When5_ThenV()
 {
     Assert.AreEqual("V", RomanNumeralsConverter.ToRoman(5));
     Assert.AreEqual("VI", RomanNumeralsConverter.ToRoman(6));
     Assert.AreEqual("VII", RomanNumeralsConverter.ToRoman(7));
     Assert.AreEqual("VIII", RomanNumeralsConverter.ToRoman(8));
 }
Exemple #4
0
 public void ToRomanTest_When1999_ThenMCMXCIX()
 {
     Assert.AreEqual("MCMXCIX", RomanNumeralsConverter.ToRoman(1999));
 }
Exemple #5
0
 public void ToRomanTest_When9_ThenIX()
 {
     Assert.AreEqual("IX", RomanNumeralsConverter.ToRoman(9));
 }
Exemple #6
0
 public void ToRomanTest_When4_ThenIV()
 {
     Assert.AreEqual("IV", RomanNumeralsConverter.ToRoman(4));
 }
Exemple #7
0
 public void ToRomanTest_When10_ThenX()
 {
     Assert.AreEqual("X", RomanNumeralsConverter.ToRoman(10));
     Assert.AreEqual("XX", RomanNumeralsConverter.ToRoman(20));
 }
Exemple #8
0
 public void ToRomanTest_When1_ThenI()
 {
     Assert.AreEqual("I", RomanNumeralsConverter.ToRoman(1));
     Assert.AreEqual("II", RomanNumeralsConverter.ToRoman(2));
     Assert.AreEqual("III", RomanNumeralsConverter.ToRoman(3));
 }