Exemplo n.º 1
0
        // Get comic by ID test
        private bool testComicByID(ASComicAccess.xkcd testClass, int ID)
        {
            ASComicAccess.xkcd.ComicMetadata metadata;

            try
            {
                metadata = testClass.getComic(ID);
            }
            catch
            {
                return false; // Test failed.
            }

            output = ("\n         ID (string): " + (string)metadata.num + "\nComic Title (string): " + (string)metadata.safe_title + "\n"); // Generate output
            return true;
        }