public void TestMethodRomanNumbers() { string romanNumber = "MMXVIII"; int number = 2018; int result = RomanNumbers.RomanToInt(romanNumber); Assert.AreEqual(number, result); }
public void RomanNumbersTest2() { //Arrange int expected = 101; //Act RomanNumbers romanNumbers = new RomanNumbers("CI"); int actual = romanNumbers.RomanToInt(); //Assert Assert.AreEqual(expected, actual, "Method is incorrect"); }