Exemple #1
0
        public void Number_Equal_2013_Expected_Result_MMXIII_TestMethod()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(2013);

            Assert.AreEqual(result, "MMXIII");
        }
Exemple #2
0
        public void Number_Equal_500_Expected_Result_D_TestMethod()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(500);

            Assert.AreEqual(result, "D");
        }
Exemple #3
0
        public void Number_Equal_599_Expected_Result_DLXXXXVIIII_TestMethod()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(599);

            Assert.AreEqual(result, "DLXXXXVIIII");
        }
Exemple #4
0
        public void Number_Equal_One_Expected_Result_I_TestMethod()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(1);

            Assert.AreEqual(result, "I");
        }
Exemple #5
0
        public void Number_Equal_ThreeThousand_Expected_Result_MMM_TestMethod()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(3000);

            Assert.AreEqual(result, "MMM");
        }
Exemple #6
0
        public void Number_Equal_100_Expected_Result_C_TestMethod()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(100);

            Assert.AreEqual("C", result);
        }
Exemple #7
0
        public void Number_Equal_55_Expected_Result_LV_TestMethod()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(55);

            Assert.AreEqual("LV", result);
        }
Exemple #8
0
        public void Number_Equal_100_Expected_Result_C()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(100);

            Assert.AreEqual(result, "C");
        }
Exemple #9
0
        public void Number_Equal_55_Expected_Result_LV()
        {
            var converter = new RomanNumeralConverter();
            var result    = converter.ConvertRomanNumeral(55);

            Assert.AreEqual(result, "LV");
        }
Exemple #10
0
        public void Number_Less_Than_One_Throws_IndexOutOfRangeException_TestMethod()
        {
            var converter = new RomanNumeralConverter();

            converter.ConvertRomanNumeral(-1);
        }
Exemple #11
0
        public void Number_Greater_Than_ThreeThousand_Throws_IndexOutOfRangeException_TestMethod()
        {
            var converter = new RomanNumeralConverter();

            converter.ConvertRomanNumeral(3001);
        }
        public void Number_Zero_Throws_IndexOutOfRangeException_TestMethod()
        {
            var converter = new RomanNumeralConverter();

            converter.ConvertRomanNumeral(0);
        }