upd: sync local changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
iisaevandClaude Opus 5.5 committed 2026-10-16 16:18:13 +00:00
1 parent 447622e813
commit b6c4aed8d5
9 files changed
+156 -8

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
using Cthangover.Core.Settings;
namespace Cthangover.Cooking
{
/// <summary>
/// Test accessor over <see cref="CookingSettings"/>: the real class exposes
/// <c>RationsPerCharacter</c> with a private setter because only the core
/// settings pipeline may write it, and the getter is static — mod unit
/// tests exercise the clamp through the public <c>ReadValues</c> contract
/// and assert via this static passthrough, so no reflection into private
/// members is needed. Stateless and harmless in production builds.
/// </summary>
public static class CookingSettingsForTests
{
/// <summary>Current parsed value, for test assertions.</summary>
public static int RationsPerCharacter => CookingSettings.RationsPerCharacter;
}
}