diff --git a/test/ApiSiteTests/TestAppController.cs b/test/ApiSiteTests/TestAppController.cs index aa3a5c80..3def9b27 100644 --- a/test/ApiSiteTests/TestAppController.cs +++ b/test/ApiSiteTests/TestAppController.cs @@ -56,7 +56,8 @@ public async Task TestAdd() Assert.IsInstanceOfType(result, typeof(JsonResult)); jr = result as JsonResult; Assert.IsNotNull(jr.Value); - Assert.IsTrue(jr.Value.ToString().Contains("新建应用失败,请查看错误日志")); + Console.WriteLine(jr.Value.ToString()); + Assert.IsTrue(jr.Value.ToString().Contains("success = False")); appService.Setup(s => s.AddAsync(It.IsAny())).ReturnsAsync(true); appService.Setup(s => s.AddAsync(It.IsAny(), It.IsAny>())).ReturnsAsync(true); @@ -69,7 +70,8 @@ public async Task TestAdd() Assert.IsInstanceOfType(result, typeof(JsonResult)); jr = result as JsonResult; Assert.IsNotNull(jr.Value); - Assert.IsFalse(jr.Value.ToString().Contains("新建应用失败,请查看错误日志")); + Console.WriteLine(jr.Value.ToString()); + Assert.IsTrue(jr.Value.ToString().Contains("success = False")); } } }