Beispiel #1
0
        public void ConvertNumberToRomanNumeral_NineHundredToCM()
        {
            int input = 900;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CM", output);
        }
Beispiel #2
0
        public void ConvertNumberToRomanNumeral_OneThousandToM()
        {
            int input = 1000;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("M", output);
        }
Beispiel #3
0
        public void ConvertNumberToRomanNumeral_FourHundredTwentyEightToCDXXVIII()
        {
            int input = 428;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CDXXVIII", output);
        }
Beispiel #4
0
        public void ConvertNumberToRomanNumeral_FiveHundredToD()
        {
            int input = 500;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("D", output);
        }
Beispiel #5
0
        public void ConvertNumberToRomanNumeral_TwoHundredFiftySixtoCCLVI()
        {
            int input = 256;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CCLVI", output);
        }
Beispiel #6
0
        public void ConvertNumberToRomanNumeral_ThreeHundredEightyNineToCCCLXXXIX()
        {
            int input = 389;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CCCLXXXIX", output);
        }
Beispiel #7
0
        public void ConvertNumberToRomanNumeral_OneHundredSixtySevenToCLXVII()
        {
            int input = 167;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CLXVII", output);
        }
Beispiel #8
0
        public void ConvertNumberToRomanNumeral_NinetyToXC()
        {
            int input = 90;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("XC", output);
        }
Beispiel #9
0
        public void ConvertNumberToRomanNumeral_FortyTwoToXLII()
        {
            int input = 42;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("XLII", output);
        }
Beispiel #10
0
        public void ConvertNumberToRomanNumeral_OneToI()
        {
            int input = 1;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("I", output);
        }
Beispiel #11
0
        public void ConvertNumberToRomanNumeral_TwoThousandSixHundredThirtyNineToMMDCXXXIX()
        {
            int input = 2639;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("MMDCXXXIX", output);
        }
Beispiel #12
0
        public void ConvertNumberToRomanNumeral_TwentyEightToXXVIII()
        {
            int input = 28;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("XXVIII", output);
        }
Beispiel #13
0
        public void ConvertNumberToRomanNumeral_TenToX()
        {
            int input = 10;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("X", output);
        }
Beispiel #14
0
        public void ConvertNumberToRomanNumeral_ThirtyTwoToXXXII()
        {
            int input = 32;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("XXXII", output);
        }
Beispiel #15
0
        public void ConvertNumberToRomanNumeral_EightToVIII()
        {
            int input = 8;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("VIII", output);
        }
Beispiel #16
0
        public void ConvertNumberToRomanNumeral_NineToIX()
        {
            int input = 9;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("IX", output);
        }
Beispiel #17
0
        public void ConvertNumberToRomanNumeral_FourToIV()
        {
            int input = 4;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("IV", output);
        }
Beispiel #18
0
        public void ConvertNumberToRomanNumeral_FiveToV()
        {
            int input = 5;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("V", output);
        }
Beispiel #19
0
        public void ConvertNumberToRomanNumeral_ThreeToIII()
        {
            int input = 3;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("III", output);
        }
Beispiel #20
0
        public void ConvertNumberToRomanNumeral_Zero_ThrowsNullException()
        {
            int input = 0;

            Assert.Throws <ArgumentException>(() => { RomanNumerals.ConvertNumberToRomanNumeral(input); });
        }
Beispiel #21
0
        public void ConvertNumberToRomanNumeral_FourThousandFortyTwo_ThrowsOutOfRangeException()
        {
            int input = 4042;

            Assert.Throws <ArgumentOutOfRangeException>(() => { RomanNumerals.ConvertNumberToRomanNumeral(input); });
        }
Beispiel #22
0
        public void ConvertNumberToRomanNumeral_NegativeFour_ThrowsOutOfRangeException()
        {
            int input = -4;

            Assert.Throws <ArgumentOutOfRangeException>(() => { RomanNumerals.ConvertNumberToRomanNumeral(input); });
        }
Beispiel #23
0
        public void ConvertNumberToRomanNumeral_BeyondUpperLimit_ThrowsOutOfRangeException()
        {
            int input = 4000;

            Assert.Throws <ArgumentOutOfRangeException>(() => { RomanNumerals.ConvertNumberToRomanNumeral(input); });
        }