Ejemplo n.º 1
0
        public void ReturnEmptyCharArr()
        {
            string romanNumeral = "";
            var    expected     = 0;

            var calculateRomanNumeral = new CalculateRomanNumeral();

            var actualResult = calculateRomanNumeral.FindRomanNumeral(romanNumeral);

            Assert.AreEqual(expected, actualResult);
        }
Ejemplo n.º 2
0
        public void ReturnValue500ForCapital_D()
        {
            string romanNumeral = "D";
            var    expected     = 500;

            var calculateRomanNumeral = new CalculateRomanNumeral();

            var actualResult = calculateRomanNumeral.FindRomanNumeral(romanNumeral);

            Console.WriteLine(actualResult);
            Assert.AreEqual(expected, actualResult);
        }
Ejemplo n.º 3
0
        public void ReturnNumericValuesForMultipleStrings_MCMXLIV()
        {
            string romanNumeral = "MCMXLIV";
            var    expected     = 1944;

            var calculateRomanNumeral = new CalculateRomanNumeral();

            var actualResult = calculateRomanNumeral.FindRomanNumeral(romanNumeral);

            Console.WriteLine(actualResult);
            Assert.AreEqual(expected, actualResult);
        }
Ejemplo n.º 4
0
        public void ReturnNumericValuesForStrings_MMVI()
        {
            string romanNumeral = "MMVI";
            var    expected     = 2006;

            var calculateRomanNumeral = new CalculateRomanNumeral();

            var actualResult = calculateRomanNumeral.FindRomanNumeral(romanNumeral);

            Console.WriteLine(actualResult);
            Assert.AreEqual(expected, actualResult);
        }