From a61c796e4df1ffa1bb8c61fb2cc3bac6a64ee0c8 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sat, 14 Feb 2026 14:50:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor(tests):=20=E6=9B=B4=E6=96=B0=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3=E7=B1=BB=E5=9E=8B=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 Mediator.IQuery 替换为 IQuery 类型引用 - 保持空值参数测试逻辑不变 - 确保类型转换正确性 --- GFramework.Core.Tests/architecture/ArchitectureContextTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GFramework.Core.Tests/architecture/ArchitectureContextTests.cs b/GFramework.Core.Tests/architecture/ArchitectureContextTests.cs index 1fc270c..d1a208f 100644 --- a/GFramework.Core.Tests/architecture/ArchitectureContextTests.cs +++ b/GFramework.Core.Tests/architecture/ArchitectureContextTests.cs @@ -129,7 +129,7 @@ public class ArchitectureContextTests public void SendQuery_Should_ThrowArgumentNullException_When_Query_IsNull() { // 明确指定调用旧的 IQuery 重载 - Assert.That(() => _context!.SendQuery((Mediator.IQuery)null!), + Assert.That(() => _context!.SendQuery((IQuery)null!), Throws.ArgumentNullException.With.Property("ParamName").EqualTo("query")); }