public void ParseWithXElementMangaTest() { XDocument doc = XDocument.Parse(Helpers.GetResourceText("test_manga_clean.xml")); MalUserLookupResults results = MalAppInfoXml.ParseResults(doc); DoMangaAsserts(results); }
public void ParseOldInvalidUserWithXElementTest() { XDocument doc = XDocument.Parse(Helpers.GetResourceText("test_no_such_user_old.xml")); Assert.Throws <MalUserNotFoundException>(() => MalAppInfoXml.ParseResults(doc)); }