예제 #1
0
        public void ParseWithXElementMangaTest()
        {
            XDocument            doc     = XDocument.Parse(Helpers.GetResourceText("test_manga_clean.xml"));
            MalUserLookupResults results = MalAppInfoXml.ParseResults(doc);

            DoMangaAsserts(results);
        }
예제 #2
0
        public void ParseOldInvalidUserWithXElementTest()
        {
            XDocument doc = XDocument.Parse(Helpers.GetResourceText("test_no_such_user_old.xml"));

            Assert.Throws <MalUserNotFoundException>(() => MalAppInfoXml.ParseResults(doc));
        }