diff --git a/UnitTest/Bootstrap.Admin/Controllers/SQLServer/AccountTest.cs b/UnitTest/Bootstrap.Admin/Controllers/SQLServer/AccountTest.cs index 77b37437..5e6c846d 100644 --- a/UnitTest/Bootstrap.Admin/Controllers/SQLServer/AccountTest.cs +++ b/UnitTest/Bootstrap.Admin/Controllers/SQLServer/AccountTest.cs @@ -82,5 +82,14 @@ namespace Bootstrap.Admin.Controllers.SqlServer var content = await r.Content.ReadAsStringAsync(); Assert.Contains("服务器拒绝处理您的请求", content); } + + [Fact] + public async void Lock_Ok() + { + var r = await Client.GetAsync("Lock"); + Assert.True(r.IsSuccessStatusCode); + var content = await r.Content.ReadAsStringAsync(); + Assert.Contains("系统锁屏", content); + } } }