예제 #1
0
        public void Check_N_to_0()
        {
            string value       = "N";
            int    valueResult = 0;

            Assert.Equal(valueResult, NumberHandle.RomanToInt(value));
        }
예제 #2
0
        public void Check_MMXX_to_2020()
        {
            string value       = "MMXX";
            int    valueResult = 2020;

            Assert.Equal(valueResult, NumberHandle.RomanToInt(value));
        }
예제 #3
0
        public void Check_MMDXLI_to_2541()
        {
            string value       = "MMDXLI";
            int    valueResult = 2541;

            Assert.Equal(valueResult, NumberHandle.RomanToInt(value));
        }
예제 #4
0
        public void Check_MMMCMXCIX_to_3999()
        {
            string value       = "MMMCMXCIX";
            int    valueResult = 3999;

            Assert.Equal(valueResult, NumberHandle.RomanToInt(value));
        }
예제 #5
0
        public void Check_LOHTII_exception_for_lere_invalid()
        {
            string value = "LOHTII";

            Assert.Throws <ArgumentException>(() => NumberHandle.RomanToInt(value));
        }
예제 #6
0
        public void Check_empt_exception()
        {
            string value = string.Empty;

            Assert.Throws <ArgumentException>(() => NumberHandle.RomanToInt(value));
        }
예제 #7
0
        public void Check_MMMM_exception()
        {
            string value = "MMMM";

            Assert.Throws <ArgumentException>(() => NumberHandle.RomanToInt(value));
        }