public void TestGetIllustrationsFromSpreadsheet() { IIllustrationGlossaryParser glossaryParser = new IllustrationGlossaryParser(); IEnumerable <Illustration> actual = glossaryParser.GetIllustrationsFromSpreadsheet(goodCsv); //not too few Assert.AreEqual(actual.ToList().Count(), 5); //not too many foreach (Illustration illustration in actual) { Assert.IsTrue(illustration.FileExists); } }
public void IllustrationListNotFoundError() { IIllustrationGlossaryParser glossaryParser = new IllustrationGlossaryParser(); IEnumerable <Illustration> actual = glossaryParser.GetIllustrationsFromSpreadsheet(badCsv); }