예제 #1
0
        public void RomanNotation_ShouldThrow_WhenIntegerNegative()
        {
            Action conversion = () => RomanFormatter.ToRomanNotation(-1);

            conversion.Should().Throw <ArgumentOutOfRangeException>();
        }
예제 #2
0
 public void RomanNotation_ShouldBeThousandNotation_WhenThousands(int integer, string notation)
 {
     RomanFormatter.ToRomanNotation(integer).Should().Be(notation);
 }
예제 #3
0
 [InlineData(1945, "MCMXLV")]     // End of second world war
 public void RomanNotation_ShouldBeMatchingNotation_WhenRealDate(int integer, string notation)
 {
     RomanFormatter.ToRomanNotation(integer).Should().Be(notation);
 }
예제 #4
0
 public void RomanNotation_ShouldBeUnitNotation_WhenUnits(int integer, string notation)
 {
     RomanFormatter.ToRomanNotation(integer).Should().Be(notation);
 }