コード例 #1
0
            public void ReturnsExpectedForInput(int input, string expected)
            {
                var converter = new RomanNumeralConverter();
                var result = converter.ToRoman(input);

                Assert.Equal(expected, result);
            }
コード例 #2
0
            public void ThrowsIndexOutOfRangeExceptionForNumberLessThanOne()
            {
                var converter = new RomanNumeralConverter();

                Assert.Throws<IndexOutOfRangeException>(
                    () => converter.ToRoman(0)
                );
            }
コード例 #3
0
 public string GivenArabicNumber_ReturnExpectedRomanNumeral(int arabic) =>
 _romanNumeralConverter.ToRoman(arabic);