public void OutputEquals102IfInputEqualsCII() { var converter = new ArabicNumberConverter(); Assert.AreEqual(102, converter.ConvertNumber("CII")); }
public void OutputEquals55IfInputEqualsLV() { var converter = new ArabicNumberConverter(); Assert.AreEqual(55, converter.ConvertNumber("LV")); }
public void OutputEquals511IfInputEqualsDXI() { var converter = new ArabicNumberConverter(); Assert.AreEqual(511, converter.ConvertNumber("DXI")); }
public void OutputEquals900IfInputEqualsCM() { var converter = new ArabicNumberConverter(); Assert.AreEqual(900, converter.ConvertNumber("CM")); }
public void OutputEquals3000IfInputEqualsMMM() { var converter = new ArabicNumberConverter(); Assert.AreEqual(3000, converter.ConvertNumber("MMM")); }
public void OutputEquals40IfInputEqualsXL() { var converter = new ArabicNumberConverter(); Assert.AreEqual(40, converter.ConvertNumber("XL")); }
public void OutputEquals500IfInputEqualsD() { var converter = new ArabicNumberConverter(); Assert.AreEqual(500, converter.ConvertNumber("D")); }
public void OutputEquals10IfInputEqualsX() { var converter = new ArabicNumberConverter(); Assert.AreEqual(10, converter.ConvertNumber("X")); }
public void OutputEquals9IfInputEqualsIX() { var converter = new ArabicNumberConverter(); Assert.AreEqual(9, converter.ConvertNumber("IX")); }
public void OutputEquals4IfInputEqualsIV() { var converter = new ArabicNumberConverter(); Assert.AreEqual(4, converter.ConvertNumber("IV")); }
public void OutputEquals1IfInputEqualsI() { var converter = new ArabicNumberConverter(); Assert.AreEqual(1, converter.ConvertNumber("I")); }
public void ThrowIndexOutOfRangeWhenInputNotIVXLCDM() { var converter = new ArabicNumberConverter(); Assert.ThrowsException <IndexOutOfRangeException>(() => converter.ConvertNumber("W")); }