public void ConvertNumber_NumberOne_I() { var data = 1; var wanted = "I"; var converter = new RomanConverter(); var result = converter.ConvertNumber(data); Assert.AreEqual(wanted, result); }
public void ConvertNumber_Number2017_MMXVII() { var data = 2017; var wanted = "MMXVII"; var converter = new RomanConverter(); var result = converter.ConvertNumber(data); Assert.AreEqual(wanted, result); }
public void ConvertNumber_Number35_XXXV() { var data = 23; var wanted = "XXIII"; var converter = new RomanConverter(); var result = converter.ConvertNumber(data); Assert.AreEqual(wanted, result); }
public void ConvertNumber_NumberZero_Cero() { var data = 0; var wanted = "Cero"; var converter = new RomanConverter(); var result = converter.ConvertNumber(data); Assert.AreEqual(wanted, result); }
public void Complex_Number_Returns_Roman() { //arrage RomanConverter romanConverter = new RomanConverter(); //act string actual = romanConverter.ConvertNumber(624); //assert Assert.Equal("DCXXIV", actual); }
public void OneDigit_Number_Returns_Roman(string expected, int value) { //arrage RomanConverter romanConverter = new RomanConverter(); //act string actual = romanConverter.ConvertNumber(value); //assert Assert.Equal(expected, actual); }
public void Number_IsZero_Throws_ArgumentOutOfRangeException() { //arrage RomanConverter romanConverter = new RomanConverter(); //act Action actual = () => romanConverter.ConvertNumber(0); //assert Assert.Throws <ArgumentOutOfRangeException>(actual); }