-
Notifications
You must be signed in to change notification settings - Fork 0
/
RomanNumeralTests.cs
42 lines (39 loc) · 1.42 KB
/
RomanNumeralTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using NUnit.Framework;
namespace KataRomanNumerals
{
public class RomanNumeralTests
{
[TestCase(1, "I")]
[TestCase(2, "II")]
[TestCase(3, "III")]
public void Should_produce_roman_numeral_when_the_imput_in_arabic_is_inferior_4(int arabicNumber, string expected)
{
string actual = new RomanNumeral().ToRoman(arabicNumber);
Assert.AreEqual(expected, actual);
}
[TestCase(4, "IV")]
[TestCase(5, "V")]
[TestCase(6, "VI")]
[TestCase(7, "VII")]
[TestCase(8, "VIII")]
[TestCase(9, "IX")]
[TestCase(10, "X")]
[TestCase(20, "XX")]
[TestCase(21, "XXI")]
[TestCase(30, "XXX")]
[TestCase(502, "DII")]
public void Should_produce_roman_numeral_when_the_imput_in_arabic_is_inferior_1000(int arabicNumber, string expected)
{
string actual = new RomanNumeral().ToRoman(arabicNumber);
Assert.AreEqual(expected, actual);
}
[TestCase(1003, "MIII")]
[TestCase(1990, "MCMXC")]
[TestCase(1903, "MCMIII")]
public void Should_produce_roman_numeral_when_the_imput_in_arabic_the_imput_roman_numeral_in_arabic_is_equal_or_greater_than_1000(int arabicNumber, string expected)
{
string actual = new RomanNumeral().ToRoman(arabicNumber);
Assert.AreEqual(expected, actual);
}
}
}