public void NlpSegmentationSegmentAndTokenizeGetAsyncTest() { SegmentationSegmentAndTokenizeResponse segmentationSegmentAndTokenizeResponse = new SegmentationSegmentAndTokenizeResponse(); Task.Run(async () => { segmentationSegmentAndTokenizeResponse = await segmentationApi.NlpSegmentationSegmentAndTokenizeGetAsync(null, "this is a test", "en", null, null); }).Wait(); Assert.IsNotNull(segmentationSegmentAndTokenizeResponse.Segments); }
public void NlpSegmentationSegmentAndTokenizeGetTest() { SegmentationSegmentAndTokenizeResponse segmentationSegmentAndTokenizeResponse = new SegmentationSegmentAndTokenizeResponse(); segmentationSegmentAndTokenizeResponse = segmentationApi.NlpSegmentationSegmentAndTokenizeGet(null, "this is a test", "en", null, null); Assert.IsNotNull(segmentationSegmentAndTokenizeResponse.Segments); }