public void SanityTestToRoman(TestData data) { var result1 = Roman.FromRoman(data.Romans); var result2 = Roman.ToRoman(result1); Assert.AreEqual(result2, data.Romans); }
public void ShouldBeUpperCaseAndParityTest(string lower, string upper) { var result1 = Roman.FromRoman(lower); var result2 = Roman.ToRoman(result1); Assert.AreEqual(result2, upper); }
public void WrongFromRomanFormat() { Assert.Throws <ArgumentException>(() => Roman.FromRoman("HHFDH")); }
public void ShouldConvertNumberFromRoman(TestData data) { var result = Roman.FromRoman(data.Romans); Assert.AreEqual(data.Numbers, result); }
public void TestTooManyRepeatedNumerals(string roman) { Assert.Throws <ArgumentException>(() => Roman.FromRoman(roman)); }
public void NullFromRomanFormat() { Assert.Throws <ArgumentException>(() => Roman.FromRoman("")); }