コード例 #1
0
        public async Task DetectSafeSearch()
        {
            ImageAnnotatorClient client = new FakeImageAnnotator();

            Assert.Equal(s_allAnnotationsResponse.SafeSearchAnnotation, client.DetectSafeSearch(s_allAnnotationsImage));
            Assert.Equal(s_allAnnotationsResponse.SafeSearchAnnotation, await client.DetectSafeSearchAsync(s_allAnnotationsImage));
        }