예제 #1
0
        public void Convert_User_Input_3999_to_Roman_MMMCMXCIX()
        {
            // Arrange
            var converter      = new IntToRomanConverter();
            var input          = "3999";
            var expectedOutput = "MMMCMXCIX";
            // Act
            var actualResult = converter.ConvertToRomanNumerals(input);

            // Assert
            Assert.Equal(expectedOutput, actualResult);
        }
예제 #2
0
        public void Convert_User_Input_16_to_Roman_XVI()
        {
            // Arrange
            var converter      = new IntToRomanConverter();
            var input          = "16";
            var expectedOutput = "XVI";
            // Act
            var actualResult = converter.ConvertToRomanNumerals(input);

            // Assert
            Assert.Equal(expectedOutput, actualResult);
        }
예제 #3
0
        public void Convert_User_Input_2014_to_Roman_MMXIV()
        {
            // Arrange
            var converter      = new IntToRomanConverter();
            var input          = "2014";
            var expectedOutput = "MMXIV";
            // Act
            var actualResult = converter.ConvertToRomanNumerals(input);

            // Assert
            Assert.Equal(expectedOutput, actualResult);
        }