예제 #1
0
        public void Test_29()
        {
            int    input    = 29;
            string expected = "XXIX";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }
예제 #2
0
        public void Test_30()
        {
            int    input    = 30;
            string expected = "XXX";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }
예제 #3
0
        public void Test_8()
        {
            int    input    = 8;
            string expected = "VIII";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }
예제 #4
0
        public void Test_1()
        {
            int    input    = 1;
            string expected = "I";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }
예제 #5
0
        public void Error_0()
        {
            int    input    = 0;
            string expected = ":(";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }
예제 #6
0
        public void Test_3999()
        {
            int    input    = 3999;
            string expected = "MMMCMXCIX";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }
예제 #7
0
        public void Test_1990()
        {
            int    input    = 1990;
            string expected = "MCMXC";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }
예제 #8
0
        public void Test_800()
        {
            int    input    = 800;
            string expected = "DCCC";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }
예제 #9
0
        public void Test_50()
        {
            int    input    = 50;
            string expected = "L";

            Assert.AreEqual(expected, Roman.ToRoman(input));
        }