docs(tests): fix CommentChecker findings across tests/ — 13,392 → 0 (repo-wide scan clean)

Comment/XML-doc changes only:
- add summaries to ~10k test methods, fixtures, fakes and helpers
  (+ <param> on theories, <returns> on async Task methods,
  <inheritdoc/> on interface implementations the checker can resolve)
- strip ~2.6k project-tracking references (WP*, P*-*, row-NN, Task N,
  #NN, Component-0NN) from comments, keeping the explanatory text;
  reword false positives in comments only
- real docs on fakes implementing BCL/library interfaces
  (IDisposable, ILogger, IOptionsMonitor, IAsyncLifetime)
- reword the last 5 src/ false positives (CWE-1236, failures-1,
  year-0001, M365)

Only non-comment edits: four one-line nested classes split across lines
so members can carry docs. Build 0 errors / 0 warnings.
This commit is contained in:
Joseph Doherty
2026-10-07 15:05:49 -04:00
parent 0ffd4bdbea
commit 513fa1aa16
998 changed files with 17896 additions and 2395 deletions
@@ -8,7 +8,7 @@ using ZB.MOM.WW.ScadaBridge.CentralUI.Auth;
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Auth;
/// <summary>
/// Regression tests for CentralUI-020. The Blazor circuit's
/// Regression tests for session-expiry detection. The Blazor circuit's
/// <c>CookieAuthenticationStateProvider</c> serves a frozen constructor-time
/// principal, so <c>SessionExpiry</c> could never observe a server-side cookie
/// expiry by polling the auth state. The fix adds <c>GET /auth/ping</c>, an
@@ -43,6 +43,7 @@ public class AuthPingEndpointTests
e.RoutePattern.RawText == pattern &&
(e.Metadata.GetMetadata<HttpMethodMetadata>()?.HttpMethods.Contains(method) ?? false));
/// <summary>Verifies that the GET route for the auth ping endpoint is mapped.</summary>
[Fact]
public void AuthPing_GetRoute_IsMapped()
{
@@ -50,6 +51,8 @@ public class AuthPingEndpointTests
Assert.NotNull(ping);
}
/// <summary>Verifies that an anonymous user receives a 401 response from the auth ping endpoint.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task AuthPing_AnonymousUser_Returns401()
{
@@ -63,6 +66,8 @@ public class AuthPingEndpointTests
Assert.Equal(StatusCodes.Status401Unauthorized, context.Response.StatusCode);
}
/// <summary>Verifies that an authenticated user receives a 200 response from the auth ping endpoint.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task AuthPing_AuthenticatedUser_Returns200()
{
@@ -78,6 +83,7 @@ public class AuthPingEndpointTests
Assert.Equal(StatusCodes.Status200OK, context.Response.StatusCode);
}
/// <summary>Verifies that the auth ping endpoint returns a status code instead of redirecting through the cookie middleware.</summary>
[Fact]
public void AuthPing_DoesNotTriggerCookieRedirect()
{