Files
mod_cooking/src/CookingSettingsForTests.cs
T
2026-10-16 16:18:13 +00:00

19 lines
790 B
C#

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;
}
}