refactor(auth): drop null-guard on dev steam ticket log; add test fixture doc

ISteamServer contract forbids null tickets (prod impl and sole caller both assume non-null),
so the dev bypass no longer needs the ?. / ?? 0 defensive form. Also adds a class-level XML
doc summary to DevAlwaysValidSteamServerTests matching the style of other fixtures in the suite.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-03 09:06:26 -04:00
parent ae94d62357
commit c27bf444a5
2 changed files with 2 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ public sealed class DevAlwaysValidSteamServer : ISteamServer
{
_logger.LogWarning(
"DEV Steam bypass: accepting ticket for steamId {SteamId} WITHOUT validation (ticketLen={Len}).",
steamId, ticket?.Length ?? 0);
steamId, ticket.Length);
return true;
}

View File

@@ -4,6 +4,7 @@ using SVSim.EmulatedEntrypoint.Services;
namespace SVSim.UnitTests.Services;
/// <summary>Covers the always-accept contract and no-throw stubs of the Dev-only ISteamServer bypass.</summary>
[TestFixture]
public class DevAlwaysValidSteamServerTests
{