Exemple #1
0
 public void IntegerToRoma_GivenInvalidInput_ReturnsArgumentOutOfRangeException(int input)
 {
     Assert.That(() => RomanConverter.IntegerToRoman(input),
                 Throws.Exception.TypeOf <ArgumentOutOfRangeException>());
 }
Exemple #2
0
 public void IntegerToRoman_GivenIntegers_ReturnsRomanNumber(int num, string expectedRoman)
 {
     Assert.That(RomanConverter.IntegerToRoman(num), Is.EqualTo(expectedRoman));
 }