public void TestInvalidRomanToArabicConversion() { var number = "WMCMLXXIII"; long actual; var result = ArabicRomanConverter.TryToArabic(number, out actual); Assert.IsFalse(result); }
public void TestSuccessfulRomanToArabicConversion() { var number = "MCMLXXIII"; var expected = 1973; long actual; var result = ArabicRomanConverter.TryToArabic(number, out actual); Assert.IsTrue(result); Assert.AreEqual(expected, actual); }