mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
refactor(tests): 更新查询接口类型引用
- 将 Mediator.IQuery<int> 替换为 IQuery<int> 类型引用 - 保持空值参数测试逻辑不变 - 确保类型转换正确性
This commit is contained in:
parent
d3e1e04e89
commit
a61c796e4d
@ -129,7 +129,7 @@ public class ArchitectureContextTests
|
||||
public void SendQuery_Should_ThrowArgumentNullException_When_Query_IsNull()
|
||||
{
|
||||
// 明确指定调用旧的 IQuery<int> 重载
|
||||
Assert.That(() => _context!.SendQuery((Mediator.IQuery<int>)null!),
|
||||
Assert.That(() => _context!.SendQuery((IQuery<int>)null!),
|
||||
Throws.ArgumentNullException.With.Property("ParamName").EqualTo("query"));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user