public async Task SearchNotEmptyTest(string keywords, SafeSearch filter) { // Act var results = await DdgApi.SearchImagesAsync(keywords, filter); // Assert Assert.NotEmpty(results.Results); }
public async Task SearchInvalidTest(string keywords) { // Act and Assert await Assert.ThrowsAsync <TokenNotFoundException>(async() => await DdgApi.SearchImagesAsync(keywords)); }