feat(batch1): add init parity hooks for ciphers and constants

This commit is contained in:
Joseph Doherty
2026-02-28 06:05:06 -05:00
parent eed61696af
commit f9b582dcca
7 changed files with 84 additions and 4 deletions

View File

@@ -32,6 +32,17 @@ namespace ZB.MOM.NatsNet.Server.Tests;
/// </summary>
public sealed class ServerTests
{
[Fact]
public void Init_CalledMultipleTimes_RemainsIdempotent()
{
var before = ServerConstants.GitCommit;
ServerConstants.Init();
ServerConstants.Init();
ServerConstants.GitCommit.ShouldBe(before);
}
// =========================================================================
// TestSemanticVersion — Test ID 2866
// Validates that ServerConstants.Version matches semver format.