コード例 #1
0
        public void Problem013_Tests_1()
        {
            string s   = "III";
            int    act = Problem013.RomanToInt(s);
            int    exp = 3;

            Assert.Equal(exp, act);
        }
コード例 #2
0
        public void Problem013_Tests_6()
        {
            string s   = "MMCDXXV";
            int    act = Problem013.RomanToInt(s);
            int    exp = 2425;

            Assert.Equal(exp, act);
        }
コード例 #3
0
        public void Problem013_Tests_4()
        {
            string s   = "M";
            int    act = Problem013.RomanToInt(s);
            int    exp = 1000;

            Assert.Equal(exp, act);
        }
コード例 #4
0
        public void Problem013_Tests_5()
        {
            string s   = "MCDLXXVI";
            int    act = Problem013.RomanToInt(s);
            int    exp = 1476;

            Assert.Equal(exp, act);
        }
コード例 #5
0
        public void Problem013_Tests_3()
        {
            string s   = "MCMXCIV";
            int    act = Problem013.RomanToInt(s);
            int    exp = 1994;

            Assert.Equal(exp, act);
        }