Esempio n. 1
0
        public async Task SearchNotEmptyTest(string keywords, SafeSearch filter)
        {
            // Act
            var results = await DdgApi.SearchImagesAsync(keywords, filter);

            // Assert
            Assert.NotEmpty(results.Results);
        }
Esempio n. 2
0
 public async Task SearchInvalidTest(string keywords)
 {
     // Act and Assert
     await Assert.ThrowsAsync <TokenNotFoundException>(async() => await DdgApi.SearchImagesAsync(keywords));
 }