From 922ad43b5e0728259b9523c7d67fe09c4dc7fa31 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 15 Apr 2026 22:59:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(cqrs):=20=E4=BF=AE=E5=A4=8DCQRS=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E7=A9=BA=E9=97=B4=E5=85=BC=E5=AE=B9=E6=80=A7=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=B8=AD=E7=9A=84=E7=B1=BB=E5=9E=8B=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新注释以更准确描述基础消息类型的命名空间暴露方式 - 将Type.GetType的throwOnError参数从true改为false以避免异常抛出 - 调整测试逻辑以更好地处理类型解析场景 --- .../Cqrs/CqrsPublicNamespaceCompatibilityTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GFramework.Core.Tests/Cqrs/CqrsPublicNamespaceCompatibilityTests.cs b/GFramework.Core.Tests/Cqrs/CqrsPublicNamespaceCompatibilityTests.cs index f89ccddc..64f69f02 100644 --- a/GFramework.Core.Tests/Cqrs/CqrsPublicNamespaceCompatibilityTests.cs +++ b/GFramework.Core.Tests/Cqrs/CqrsPublicNamespaceCompatibilityTests.cs @@ -17,7 +17,7 @@ namespace GFramework.Core.Tests.Cqrs; public sealed class CqrsPublicNamespaceCompatibilityTests { /// - /// 验证基础消息类型继续暴露在历史 Core.Cqrs 命名空间,同时由独立 runtime 程序集承载实现。 + /// 验证基础消息类型继续暴露在历史公开 CQRS 命名空间(GFramework.Cqrs.*),同时由独立 runtime 程序集承载实现。 /// [Test] public void Base_Message_Types_Should_Live_In_Cqrs_Namespaces_And_Runtime_Assembly() @@ -57,7 +57,7 @@ public sealed class CqrsPublicNamespaceCompatibilityTests private static void AssertForwardedType(string assemblyQualifiedTypeName) { - var resolvedType = Type.GetType(assemblyQualifiedTypeName, throwOnError: true); + var resolvedType = Type.GetType(assemblyQualifiedTypeName, throwOnError: false); Assert.Multiple(() => {