public async Task TestGetBigCoverPictureResult()
        {
            //get book no 123
            var book = await NHentaiClient.GetBookAsync(123);

            //Check this book is
            Assert.AreEqual(635, book.MediaId);

            //https://i.nhentai.net/galleries/635/1.jpg
            var result = await NHentaiClient.GetBigCoverPictureAsync(book);

            //make sure downloaded image
            Assert.AreEqual(true, result.Length > 0);
        }
Exemple #2
0
        public async Task TestGetBigCoverPictureResult()
        {
            // Get book no 123
            var book = await NHentaiClient.GetBookAsync(123);

            // Check this book is right media number
            Assert.AreEqual(635, book.MediaId);

            // Check url
            var imageUrl = NHentaiClient.GetBigCoverUrl(book);

            Assert.AreEqual(imageUrl, "https://t.nhentai.net/galleries/635/cover.jpg");

            // Make sure image is downloaded
            var result = await NHentaiClient.GetBigCoverPictureAsync(book);

            Assert.AreEqual(true, result.Length > 0);
        }