Ejemplo n.º 1
0
        public async Task TextAnalyticsConfigShowTestAsync()
        {
            // act
            _controller.ShowTextAnalyticsConfigs();

            // assert
            var configsFile = await _storageService.ReadFileAsStringAsync(Constants.ConfigsFileName);

            var configModel    = JsonConvert.DeserializeObject <ConfigModel>(configsFile);
            var expectedString = JsonConvert.SerializeObject(configModel.TextAnalytics, Formatting.Indented);

            Assert.Equal(expectedString, _stringWriter.ToString().Trim());
        }