test: 更新GiteeController相关单元测试

This commit is contained in:
Argo Zhang 2019-06-14 20:37:08 +08:00
parent 1f2a56f999
commit 9c99b76ce0
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 6 additions and 0 deletions

View File

@ -48,12 +48,18 @@ namespace Bootstrap.Admin.Api
new Func<Task<string>>(() =>
{
throw new TaskCanceledException();
}),
new Func<string, string>(content => {
return "";
})
});
t.Invoke(null, new object[] {
new Func<Task<string>>(()=> {
throw new Exception();
}),
new Func<string, string>(content => {
return "";
})
});
}