Пример #1
0
        public void ThrowException_WhenConverting_GivenArabicNumberWhichIsLessThanOne()
        {
            var arabicToRomanNumeral = new ArabicToRomanNumeral();

            Action actualRomanNumeral = () => arabicToRomanNumeral.Convert(0);

            actualRomanNumeral.Should().Throw <Exception>();
        }
Пример #2
0
        public void ReturnRomanNumeral_WhenConverting_GivenArabicNumber(int arabicNumber, string expectedRomanNumeral)
        {
            var arabicToRomanNumeral = new ArabicToRomanNumeral();

            var actualRomanNumeral = arabicToRomanNumeral.Convert(arabicNumber);

            actualRomanNumeral.Should().Be(expectedRomanNumeral);
        }