Esempio n. 1
0
        public void ArabicToRoman_Input1059ArabicNumber_ReturnsMLIX()
        {
            ConvertingLogic number     = new ConvertingLogic();
            int             arabic1059 = 1059;

            string result = number.ArabicToRoman(arabic1059);

            Assert.That(result, Is.EqualTo("MLIX"));
        }
Esempio n. 2
0
        public void ArabicToRoman_Input8ArabicNumber_ReturnsVIII()
        {
            ConvertingLogic number  = new ConvertingLogic();
            int             arabic8 = 8;

            string result = number.ArabicToRoman(arabic8);

            Assert.That(result, Is.EqualTo("VIII"));
        }
Esempio n. 3
0
        public void ArabicToRoman_Input900ArabicNumber_ReturnsCM()
        {
            ConvertingLogic number    = new ConvertingLogic();
            int             arabic900 = 900;

            string result = number.ArabicToRoman(arabic900);

            Assert.That(result, Is.EqualTo("CM"));
        }
Esempio n. 4
0
        public void ArabicToRoman_Input4ArabicNumber_ReturnsIV()
        {
            ConvertingLogic number  = new ConvertingLogic();
            int             arabic4 = 4;

            string result = number.ArabicToRoman(arabic4);

            Assert.That(result, Is.EqualTo("IV"));
        }