Пример #1
0
        public void ConvertNumberToRomanNumeral_NineHundredToCM()
        {
            int input = 900;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CM", output);
        }
Пример #2
0
        public void ConvertNumberToRomanNumeral_OneThousandToM()
        {
            int input = 1000;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("M", output);
        }
Пример #3
0
        public void ConvertNumberToRomanNumeral_FourHundredTwentyEightToCDXXVIII()
        {
            int input = 428;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CDXXVIII", output);
        }
Пример #4
0
        public void ConvertNumberToRomanNumeral_FiveHundredToD()
        {
            int input = 500;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("D", output);
        }
Пример #5
0
        public void ConvertNumberToRomanNumeral_TwoHundredFiftySixtoCCLVI()
        {
            int input = 256;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CCLVI", output);
        }
Пример #6
0
        public void ConvertNumberToRomanNumeral_ThreeHundredEightyNineToCCCLXXXIX()
        {
            int input = 389;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CCCLXXXIX", output);
        }
Пример #7
0
        public void ConvertNumberToRomanNumeral_OneHundredSixtySevenToCLXVII()
        {
            int input = 167;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("CLXVII", output);
        }
Пример #8
0
        public void ConvertNumberToRomanNumeral_NinetyToXC()
        {
            int input = 90;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("XC", output);
        }
Пример #9
0
        public void ConvertNumberToRomanNumeral_FortyTwoToXLII()
        {
            int input = 42;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("XLII", output);
        }
Пример #10
0
        public void ConvertNumberToRomanNumeral_OneToI()
        {
            int input = 1;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("I", output);
        }
Пример #11
0
        public void ConvertNumberToRomanNumeral_TwoThousandSixHundredThirtyNineToMMDCXXXIX()
        {
            int input = 2639;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("MMDCXXXIX", output);
        }
Пример #12
0
        public void ConvertNumberToRomanNumeral_TwentyEightToXXVIII()
        {
            int input = 28;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("XXVIII", output);
        }
Пример #13
0
        public void ConvertNumberToRomanNumeral_TenToX()
        {
            int input = 10;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("X", output);
        }
Пример #14
0
        public void ConvertNumberToRomanNumeral_ThirtyTwoToXXXII()
        {
            int input = 32;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("XXXII", output);
        }
Пример #15
0
        public void ConvertNumberToRomanNumeral_EightToVIII()
        {
            int input = 8;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("VIII", output);
        }
Пример #16
0
        public void ConvertNumberToRomanNumeral_NineToIX()
        {
            int input = 9;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("IX", output);
        }
Пример #17
0
        public void ConvertNumberToRomanNumeral_FourToIV()
        {
            int input = 4;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("IV", output);
        }
Пример #18
0
        public void ConvertNumberToRomanNumeral_FiveToV()
        {
            int input = 5;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("V", output);
        }
Пример #19
0
        public void ConvertNumberToRomanNumeral_ThreeToIII()
        {
            int input = 3;

            string output = RomanNumerals.ConvertNumberToRomanNumeral(input);

            Assert.Equal("III", output);
        }
Пример #20
0
        public void ConvertNumberToRomanNumeral_Zero_ThrowsNullException()
        {
            int input = 0;

            Assert.Throws <ArgumentException>(() => { RomanNumerals.ConvertNumberToRomanNumeral(input); });
        }
Пример #21
0
        public void ConvertNumberToRomanNumeral_FourThousandFortyTwo_ThrowsOutOfRangeException()
        {
            int input = 4042;

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

            Assert.Throws <ArgumentOutOfRangeException>(() => { RomanNumerals.ConvertNumberToRomanNumeral(input); });
        }
Пример #23
0
        public void ConvertNumberToRomanNumeral_BeyondUpperLimit_ThrowsOutOfRangeException()
        {
            int input = 4000;

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