예제 #1
0
        public void ConvertITo1Test()
        {
            var p = NumeralParser.TryParse("I", out var v);

            Assert.IsTrue(p);
            Assert.AreEqual(1u, v);
        }
예제 #2
0
        public void ConvertMDCLXVITo1666Test()
        {
            var p = NumeralParser.TryParse("MDCLXVI", out var v);

            Assert.IsTrue(p);
            Assert.AreEqual(1666u, v);
        }
예제 #3
0
        public void ConvertCDXLIVTo444Test()
        {
            var p = NumeralParser.TryParse("CDXLIV", out var v);

            Assert.IsTrue(p);
            Assert.AreEqual(444u, v);
        }
예제 #4
0
        public void ConvertMMXIXTo2019Test()
        {
            var p = NumeralParser.TryParse("MMXIX", out var v);

            Assert.IsTrue(p);
            Assert.AreEqual(2019u, v);
        }