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
@@ -16,6 +16,7 @@ public class InboundScriptExecutorStalenessTests
private readonly InboundScriptExecutor _executor;
private readonly RouteHelper _route;
/// <summary>Initializes the test class with an executor and route helper backed by substitutes.</summary>
public InboundScriptExecutorStalenessTests()
{
_executor = new InboundScriptExecutor(
@@ -27,6 +28,8 @@ public class InboundScriptExecutorStalenessTests
private Task<InboundScriptResult> Run(ApiMethod m) => _executor.ExecuteAsync(
m, new Dictionary<string, object?>(), _route, TimeSpan.FromSeconds(10));
/// <summary>Verifies that an updated script is recompiled rather than served from a stale handler.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task UpdatedScript_RecompilesInsteadOfServingStaleHandler()
{
@@ -45,6 +48,8 @@ public class InboundScriptExecutorStalenessTests
Assert.Contains("2", r2.ResultJson); // old cache would have returned 1
}
/// <summary>Verifies that a known-bad method whose script was fixed is compiled instead of fast-failing.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task KnownBadMethod_FixedScript_CompilesInsteadOfFastFailing()
{
@@ -63,6 +68,8 @@ public class InboundScriptExecutorStalenessTests
Assert.Contains("42", r2.ResultJson);
}
/// <summary>Verifies that a known-bad method with an unchanged script still fast-fails.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task KnownBadMethod_SameScript_StillFastFails()
{
@@ -76,6 +83,8 @@ public class InboundScriptExecutorStalenessTests
Assert.Contains("Script compilation failed", r.ErrorMessage);
}
/// <summary>Verifies that a handler registered through the test seam without a script is not revision checked.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task TestSeamRegisterHandler_WithoutScript_IsNotRevisionChecked()
{
@@ -87,6 +96,8 @@ public class InboundScriptExecutorStalenessTests
Assert.Contains("99", r.ResultJson);
}
/// <summary>Verifies that invalidating a method drops both its handler and its known-bad record.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task InvalidateMethod_DropsHandlerAndKnownBadRecord()
{