예제 #1
0
        public async Task SearchByTags()
        {
            string[] tags = new string[] { "lolicon ", SearchClient.GetExactTag("full color"),
                                           SearchClient.GetCategoryTag("kantai", TagType.Parody),
                                           SearchClient.GetExcludeTag("drugs"), SearchClient.GetExcludeTag("rape") };
            var res = (await SearchClient.SearchWithTagsAsync(tags, 1)).elements[0];
            var ids = res.tags.Select(x => x.id);

            Assert.Contains(1841, ids);
            Assert.Contains(19440, ids);
            Assert.DoesNotContain(22079, ids);
            Assert.DoesNotContain(27553, ids);
        }