public async Task IntegrationTest2() { IImageProvider provider = new WallDashProvider(); var images = await provider.GetImages(string.Empty, "views", 16, "imagesPerPage=24"); Assert.IsNotNull(images); Assert.AreEqual(images.Count, 24); Assert.IsTrue(images.All(img => img.StartsWith("http://") && img.EndsWith(".jpg"))); }
public async Task IntegrationTest() { IImageProvider provider = new WallDashProvider(); var images = await provider.GetImages(string.Empty, "random", 0, string.Empty); Assert.IsNotNull(images); Assert.AreEqual(images.Count, 16); Assert.IsTrue(images.All(img => img.StartsWith("http://") && img.EndsWith(".jpg"))); }