Esempio n. 1
0
        public void SearchHoukagoPlay_Test()
        {
            MangaUpdatesSearch miri = new MangaUpdatesSearch();

            var item = miri.Search("Houkago play");

            Assert.IsNotNull(item);
            Assert.AreEqual("Houkago Play", item.Title);
            Assert.IsNotNull(item.Description);
            Assert.AreEqual(SeriesType.Manga, item.SeriesType);
            Assert.IsFalse(item.IsCompleted);

            /* Pains me to write this and I someday hope the
             * following line causes this test to fail.
             */
            Assert.IsFalse(item.IsFullyScanlated);
        }
Esempio n. 2
0
        public void Search_Test()
        {
            MangaUpdatesSearch miri = new MangaUpdatesSearch();

            var item = miri.Search("Houkago play");

            if (item != null)
            {
                Console.WriteLine("Title: {0}", item.Title);
                Console.WriteLine("---------------");
                Console.WriteLine("Description: {0}", item.Description);
                Console.WriteLine("-----");
                Console.WriteLine("Series type: {0}", item.SeriesType);
                Console.WriteLine("Is completed? {0} | Is fully scanlated? {1}", Results.BoolToNaturalEnglish(item.IsCompleted), Results.BoolToNaturalEnglish(item.IsFullyScanlated));
            }
            else
            {
                Console.WriteLine("Series not found.");
            }
        }