public void Arabic_WhenConvertIntegerValue_ShouldReturnRomanString(string expected, int value) { // Arrange NumberToRomanConvertor roman = new NumberToRomanConvertor(); //Act string actual = roman.NumberToRoman(value); //Assert Assert.Equal(expected, actual); }
public void Arabic_WhenCantConvertValue_ShouldRiseAnException() { // Arrange NumberToRomanConvertor roman = new NumberToRomanConvertor(); //Act Action actual = () => roman.NumberToRoman(-1); //Assert Assert.Throws <ArgumentException>(actual); }
public void convert_int_to_Roman(int input, string expectedResult) { //Arrange var convertor = new NumberToRomanConvertor(); //Act var actualResult = convertor.ToRoman(input); //Assert Assert.Equal(expectedResult, actualResult); }