using GFramework.Core.Command; namespace GFramework.Core.Tests.Command; /// /// 表示 使用的异常路径异步测试命令。 /// public sealed class TestAsyncCommandWithExceptionV3 : AbstractAsyncCommand { /// /// 初始化 的新实例。 /// /// 命令输入。 public TestAsyncCommandWithExceptionV3(TestCommandInputV2 input) : base(input) { } /// /// 执行测试命令并始终抛出预期异常。 /// /// 命令输入。 /// 此方法不会正常返回。 /// 始终抛出,用于验证异常传播行为。 protected override Task OnExecuteAsync(TestCommandInputV2 input) { throw new InvalidOperationException("Test exception"); } }