public void TestOne(string expected, int actual) { RomanNumeralsConverter romanNumeralsConverter = new RomanNumeralsConverter(); string actualString = romanNumeralsConverter.Convert(actual); //Assert.AreEqual(expected, actualString); Check.That(actualString).IsEqualTo(expected); }
public void Convert_GivenTeenNumber_ShouldAppendAccordingly(int number, string expected) { //Arrange var sut = new RomanNumeralsConverter(); //Act var actual = sut.Convert(number); //Assert Assert.AreEqual(expected, actual); }
public void Convert_GivenNumber2008_ShouldReturnMMVIII() { //Arrange var sut = new RomanNumeralsConverter(); var number = 2008; var expected = "MMVIII"; //Act var actual = sut.Convert(number); //Assert Assert.AreEqual(expected, actual); }
public void Convert_GivenNumber10_ShouldReturnIX() { //Arrange var sut = new RomanNumeralsConverter(); var number = 10; var expected = "X"; //Act var actual = sut.Convert(number); //Assert Assert.AreEqual(expected, actual); }
public void Convert_CMD_ThrowsException() { var numbersConverter = new RomanNumeralsConverter(); numbersConverter.Convert("CMD"); }
public void Convert_CDLXVI_ReturnsFourHundredSixtySix() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(466U, numbersConverter.Convert("CDLXVI")); }
public void Convert_CLXXXIV_ReturnsOneHundredEightyFour() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(184U, numbersConverter.Convert("CLXXXIV")); }
public void Convert_LXXVIII_ReturnsSeventyEight() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(78U, numbersConverter.Convert("LXXVIII")); }
public void TestReturnValueForTwo() { RomanNumeralsConverter rn = new RomanNumeralsConverter(); Assert.AreEqual("II", rn.Convert(2)); }
public void Convert_VII_ReturnsSeven() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(7U, numbersConverter.Convert("VII")); }
public void Convert_V_ReturnsFive() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(5U, numbersConverter.Convert("V")); }
public void Convert_II_ReturnsTwo() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(2U, numbersConverter.Convert("II")); }
public void Convert_I_ReturnsOne() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(1U, numbersConverter.Convert("I")); }
public void Convert_EmptyString_ReturnsZero() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(0U, numbersConverter.Convert(string.Empty)); }
public void TestReturnValueForThreeFourTwentyTwo() { RomanNumeralsConverter rn = new RomanNumeralsConverter(); Assert.AreEqual("MMMCDXXII", rn.Convert(3422)); }
public void Convert_IX_ReturnsNine() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(9U, numbersConverter.Convert("IX")); }
public void Convert_XIV_ReturnsFourteen() { var numbersConverter = new RomanNumeralsConverter(); Assert.AreEqual(14U, numbersConverter.Convert("XIV")); }
public string ShouldConvertNumbers(int number) { var converter = new RomanNumeralsConverter(); return(converter.Convert(number)); }
public void Test1() { RomanNumeralsConverter rn = new RomanNumeralsConverter(); Assert.AreEqual("nulla", rn.Convert(0)); }