mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
test(game-tests): 简化架构配置集成测试异步断言
- 简化 ArchitectureConfigIntegrationTests 中的异步异常断言包装 - 保持重复初始化场景的测试语义与验证路径不变
This commit is contained in:
parent
65cd23ff3e
commit
2a9e9f26c7
@ -128,7 +128,7 @@ public class ArchitectureConfigIntegrationTests
|
||||
|
||||
var secondArchitecture = new ModuleOnlyArchitecture(module);
|
||||
var exception =
|
||||
Assert.ThrowsAsync<InvalidOperationException>(async () => await secondArchitecture.InitializeAsync().ConfigureAwait(false));
|
||||
Assert.ThrowsAsync<InvalidOperationException>(() => secondArchitecture.InitializeAsync());
|
||||
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user