mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
- 拆分 GFramework.Core.Tests 中多组测试辅助类型到独立文件以消减 MA0048 warning - 更新 analyzer-warning-reduction 的 tracking 与 trace 以记录批处理基线和下一恢复点 - 验证 GFramework.Core.Tests Release 构建清零并将仓库根权威 warning 基线压降到 288
22 lines
661 B
C#
22 lines
661 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using GFramework.Core.Abstractions.State;
|
|
using GFramework.Core.State;
|
|
|
|
namespace GFramework.Core.Tests.State;
|
|
|
|
/// <summary>
|
|
/// 为 <see cref="StateMachineSystemTests" /> 提供可观察内部状态注册表的测试状态机实现。
|
|
/// </summary>
|
|
public class TestStateMachineSystemV5 : StateMachineSystem
|
|
{
|
|
/// <summary>
|
|
/// 获取状态机当前维护的状态实例映射,供测试断言注册结果使用。
|
|
/// </summary>
|
|
/// <returns>状态类型到状态实例的只读视图。</returns>
|
|
public IDictionary<Type, IState> GetStates()
|
|
{
|
|
return States;
|
|
}
|
|
}
|