public void ToRomanNumeral_WhenNumberEquals599_ReturnsDLXXXXVIIII() { var convert = new RomanNumeralConverter(); string result = convert.ToRomanNumeral(599); Assert.AreEqual("DLXXXXVIIII", result); }
public void ToRomanNumeral_WhenNumberEquals55_ReturnsLV() { var convert = new RomanNumeralConverter(); string result = convert.ToRomanNumeral(55); Assert.AreEqual("LV", result); }
public void ToRomanNumeral_WhenNumberEquals2013_ReturnsMMXIII() { var convert = new RomanNumeralConverter(); string result = convert.ToRomanNumeral(2013); Assert.AreEqual("MMXIII", result); }
public void ToRomanNumeral_WhenNumberEquals500_ReturnsD() { var convert = new RomanNumeralConverter(); string result = convert.ToRomanNumeral(500); Assert.AreEqual("D", result); }
public void ToRomanNumeral_WhenNumberEquals1_ReturnsI() { var convert = new RomanNumeralConverter(); string result = convert.ToRomanNumeral(1); Assert.AreEqual("I", result); }
public void convert_44_to_xliv() { // Arrange var converter = new RomanNumeralConverter(); var input = 44; var expectedResult = "XLIV"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void convert_498_to_cdxcviii() { // Arrange var converter = new RomanNumeralConverter(); var input = 498; var expectedResult = "CDXCVIII"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void convert_number_less_than_4_to_roman_numeral() { // Arrange var converter = new RomanNumeralConverter(); var input = 1; var expectedResult = "I"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void convert_29_to_xxix() { // Arrange var converter = new RomanNumeralConverter(); var input = 29; var expectedResult = "XXIX"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void convert_3999_to_mmmcmxcix() { // Arrange var converter = new RomanNumeralConverter(); var input = 3999; var expectedResult = "MMMCMXCIX"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void convert_16_to_xvi() { // Arrange var converter = new RomanNumeralConverter(); var input = 16; var expectedResult = "XVI"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void convert_891_to_dcccxci() { // Arrange var converter = new RomanNumeralConverter(); var input = 891; var expectedResult = "DCCCXCI"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void convert_1023_to_mxxiii() { // Arrange var converter = new RomanNumeralConverter(); var input = 1023; var expectedResult = "MXXIII"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void convert_500_to_d() { // Arrange var converter = new RomanNumeralConverter(); var input = 500; var expectedResult = "D"; // Act var actualResult = converter.ToRomanNumeral(input); // Assert Assert.Equal(expectedResult, actualResult); }
public void ToRomanNumeral_WhenNumberIsGreaterThan3000_ThrowsIndexOutOfRangeException() { var convert = new RomanNumeralConverter(); string result = convert.ToRomanNumeral(3001); }
public void WhenNumberIsPositive_ThenReturnNumeral(int number, string expected) { var result = RomanNumeralConverter.ToRomanNumeral(number); Assert.That(result, Is.EqualTo(expected)); }
public void WhenIsZeroOrMinusNumber_ThenThrowException(int number) { Assert.Throws <ArgumentOutOfRangeException>(() => RomanNumeralConverter.ToRomanNumeral(number)); }
public void ToRomanNumeral_WhenNumberIsLessThan1_ThrowsIndexOutOfRangeException() { var convert = new RomanNumeralConverter(); string result = convert.ToRomanNumeral(0); }