public void ParseOldInvalidUserWithTextReaderTest() { using (TextReader reader = Helpers.GetResourceStream("test_no_such_user_old.xml")) { Assert.Throws <MalUserNotFoundException>(() => MalAppInfoXml.Parse(reader)); } }
public void ParseWithXElementTest() { XDocument doc = XDocument.Parse(Helpers.GetResourceText("test_clean.xml")); MalUserLookupResults results = MalAppInfoXml.Parse(doc); DoAsserts(results); }
public void ParseWithTextReaderMangaTest() { using (TextReader reader = Helpers.GetResourceStream("test_manga.xml")) { MalUserLookupResults results = MalAppInfoXml.Parse(reader); DoMangaAsserts(results); } }
public void ParseOldInvalidUserWithXElementTest() { XDocument doc = XDocument.Parse(Helpers.GetResourceText("test_no_such_user_old.xml")); Assert.Throws <MalUserNotFoundException>(() => MalAppInfoXml.Parse(doc)); }