コード例 #1
0
            public void Numeral_XLV_converts_to_number_45()
            {
                var numeral       = "XLV";
                var numeralParser = new NumeralConverter();

                var result = numeralParser.Numberizer(numeral);

                Assert.AreEqual(45, result);
            }
コード例 #2
0
            public void Numeral_XVI_converts_to_number_16()
            {
                var numeral       = "XVI";
                var numeralParser = new NumeralConverter();

                var result = numeralParser.Numberizer(numeral);

                Assert.AreEqual(16, result);
            }
コード例 #3
0
            public void Numeral_XXIX_converts_to_number_29()
            {
                var numeral       = "XXIX";
                var numeralParser = new NumeralConverter();

                var result = numeralParser.Numberizer(numeral);

                Assert.AreEqual(29, result);
            }
コード例 #4
0
            public void Numeral_LXVIII_converts_to_number_29()
            {
                var numeral       = "LXVIII";
                var numeralParser = new NumeralConverter();

                var result = numeralParser.Numberizer(numeral);

                Assert.AreEqual(68, result);
            }