diff --git a/GFramework.Game.Tests/Config/YamlConfigLoaderAllOfTests.cs b/GFramework.Game.Tests/Config/YamlConfigLoaderAllOfTests.cs
index 53089b81..09f0eebb 100644
--- a/GFramework.Game.Tests/Config/YamlConfigLoaderAllOfTests.cs
+++ b/GFramework.Game.Tests/Config/YamlConfigLoaderAllOfTests.cs
@@ -541,6 +541,11 @@ public sealed class YamlConfigLoaderAllOfTests
CreateConfigFile(relativePath, content);
}
+ ///
+ /// 构建带有指定奖励内容的怪物配置 YAML 文本。
+ ///
+ /// 奖励对象的 YAML 片段。
+ /// 完整的怪物配置 YAML 文本。
private static string BuildMonsterConfigYaml(string rewardYaml)
{
return $$"""
@@ -550,6 +555,12 @@ public sealed class YamlConfigLoaderAllOfTests
""";
}
+ ///
+ /// 构建带有指定奖励属性和 allOf 约束的怪物 schema JSON。
+ ///
+ /// 奖励对象的 properties JSON 片段。
+ /// allOf 约束的 JSON 数组片段。
+ /// 完整的 schema JSON 文本。
private static string BuildMonsterSchema(
string rewardPropertiesJson,
string allOfJson)
@@ -570,6 +581,12 @@ public sealed class YamlConfigLoaderAllOfTests
""";
}
+ ///
+ /// 为多行文本的每一行添加指定数量的空格缩进。
+ ///
+ /// 原始文本。
+ /// 缩进空格数。
+ /// 添加缩进后的文本。
private static string IndentLines(string text, int indentLevel)
{
var indentation = new string(' ', indentLevel);