test: 增加锁屏页面的单元测试

This commit is contained in:
Argo Zhang 2019-08-20 18:39:28 +08:00
parent 58f517b8bd
commit 44d049d471
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 9 additions and 0 deletions

View File

@ -82,5 +82,14 @@ namespace Bootstrap.Admin.Controllers.SqlServer
var content = await r.Content.ReadAsStringAsync(); var content = await r.Content.ReadAsStringAsync();
Assert.Contains("服务器拒绝处理您的请求", content); 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);
}
} }
} }