NumberToRoman() public method

public NumberToRoman ( int number ) : string
number int
return string
示例#1
0
        public void Should_Convert_Number_to_Roman(int number, string expected)
        {
            var romNum = new RomanNumeralsConverter();
            var result = romNum.NumberToRoman(number);

            Assert.AreEqual(expected, result);
        }
 public void Should_Convert_Number_to_Roman(int number, string expected)
 {
     var romNum = new RomanNumeralsConverter();
     var result = romNum.NumberToRoman(number);
     Assert.AreEqual(expected, result);
 }
 public void Number_greater_than_3999_should_thow_exception()
 {
     var romNum = new RomanNumeralsConverter();
     romNum.NumberToRoman(4000);
 }
示例#4
0
        public void Number_greater_than_3999_should_thow_exception()
        {
            var romNum = new RomanNumeralsConverter();

            romNum.NumberToRoman(4000);
        }