コード例 #1
0
        public void GetTestSuiteExcelTemplateTest()
        {
            var response = new East.Tool.UseCaseTranslator.WebAPI.Controllers.V1_0.TemplateController().GetTestSuiteExcelTemplate();

            Assert.IsNotNull(response);
            Assert.IsTrue(response.StatusCode == HttpStatusCode.OK);
            Assert.IsTrue(response.Content.Headers.ContentType.MediaType == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
            Assert.IsTrue(response.Content.Headers.ContentDisposition.DispositionType == "attachment");
            Assert.IsTrue(response.Content.Headers.ContentDisposition.FileName == "TestSuiteTemplate.xlsx");
        }
コード例 #2
0
        public void GetUseCaseScenarioSetTemplateTest()
        {
            var response = new East.Tool.UseCaseTranslator.WebAPI.Controllers.V1_0.TemplateController().GetUseCaseScenarioSetTemplate();

            Assert.IsNotNull(response);
            Assert.IsTrue(response.StatusCode == HttpStatusCode.OK);
            Assert.IsTrue(response.Content.Headers.ContentType.MediaType == "text/plain");
            Assert.IsTrue(response.Content.Headers.ContentType.CharSet == "utf-8");
            Assert.IsTrue(response.Content.Headers.ContentDisposition.DispositionType == "attachment");
            Assert.IsTrue(response.Content.Headers.ContentDisposition.FileName == "UseCaseScenarioSetTemplate.md");
        }