Пример #1
0
 public void ParseOldInvalidUserWithTextReaderTest()
 {
     using (TextReader reader = Helpers.GetResourceStream("test_no_such_user_old.xml"))
     {
         Assert.Throws <MalUserNotFoundException>(() => MalAppInfoXml.Parse(reader));
     }
 }
Пример #2
0
        public void ParseWithXElementTest()
        {
            XDocument            doc     = XDocument.Parse(Helpers.GetResourceText("test_clean.xml"));
            MalUserLookupResults results = MalAppInfoXml.Parse(doc);

            DoAsserts(results);
        }
Пример #3
0
 public void ParseWithTextReaderMangaTest()
 {
     using (TextReader reader = Helpers.GetResourceStream("test_manga.xml"))
     {
         MalUserLookupResults results = MalAppInfoXml.Parse(reader);
         DoMangaAsserts(results);
     }
 }
Пример #4
0
        public void ParseOldInvalidUserWithXElementTest()
        {
            XDocument doc = XDocument.Parse(Helpers.GetResourceText("test_no_such_user_old.xml"));

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