public List <int> ConvertDocument(string name) { var document = _documentReader.Read(name); var tokens = document.Split(' '); return(tokens .Select(t => _romanConverter.Convert(t)) .ToList()); }
private void TestRomanValue(int num, string expected) { var actual = romanConverter.Convert(num); Assert.Equal(expected, actual); }
public void Converter_Can_Convert_Four() { var result = _converter.Convert(4); Assert.AreEqual("IV", result); }