Example #1
0
        public void test07_converting_44_should_be_XLIV()
        {
            //Arrange -- context             -- Given
            var converter      = new RomanNumeralizer();
            var input          = 44;
            var expectedResult = "XLIV";

            //Act     -- do the thing        -- When
            var actualResult = converter.ConvertToRoman(input);

            //Assert  -- checking the result -- Then
            Assert.Equal(expectedResult, actualResult);
        }
Example #2
0
        public void test20_converting_1023_should_be_MXXIII()
        {
            //Arrange -- context             -- Given
            var converter      = new RomanNumeralizer();
            var input          = 1023;
            var expectedResult = "MXXIII";

            //Act     -- do the thing        -- When
            var actualResult = converter.ConvertToRoman(input);

            //Assert  -- checking the result -- Then
            Assert.Equal(expectedResult, actualResult);
        }
Example #3
0
        public void test22_converting_3999_should_be_MMMCMXCIX()
        {
            //Arrange -- context             -- Given
            var converter      = new RomanNumeralizer();
            var input          = 3999;
            var expectedResult = "MMMCMXCIX";

            //Act     -- do the thing        -- When
            var actualResult = converter.ConvertToRoman(input);

            //Assert  -- checking the result -- Then
            Assert.Equal(expectedResult, actualResult);
        }
Example #4
0
        public void test16_converting_891_should_be_DCCCXCI()
        {
            //Arrange -- context             -- Given
            var converter      = new RomanNumeralizer();
            var input          = 891;
            var expectedResult = "DCCCXCI";

            //Act     -- do the thing        -- When
            var actualResult = converter.ConvertToRoman(input);

            //Assert  -- checking the result -- Then
            Assert.Equal(expectedResult, actualResult);
        }