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
@@ -51,6 +51,7 @@ public class FlowGraphBuilderLogLineTests
private static FlowStep StepOf(FlowGraph graph, FlowStepKind kind) => Assert.Single(graph.Steps, s => s.Kind == kind);
/// <summary>Verifies that a log line carrying a step event id attaches to that step.</summary>
[Fact]
public void LogLine_WithStepEventId_AttachesToThatStep()
{
@@ -65,6 +66,7 @@ public class FlowGraphBuilderLogLineTests
Assert.Null(StepOf(graph, FlowStepKind.ScriptRun).Logs);
}
/// <summary>Verifies that a log line without a step id attaches to the execution anchor.</summary>
[Fact]
public void LogLine_WithoutStepId_AttachesToTheExecutionAnchor()
{
@@ -76,6 +78,7 @@ public class FlowGraphBuilderLogLineTests
Assert.Null(StepOf(graph, FlowStepKind.AttributeWrite).Logs);
}
/// <summary>Verifies that a central log line attaches to the inbound row rather than the response.</summary>
[Fact]
public void CentralLine_AttachesToInboundRow_NotResponse()
{
@@ -87,6 +90,7 @@ public class FlowGraphBuilderLogLineTests
Assert.Null(StepOf(graph, FlowStepKind.Response).Logs);
}
/// <summary>Verifies that a script-entry log line attaches to the route-call root.</summary>
[Fact]
public void ScriptEntryLine_AttachesToRouteCallRoot()
{
@@ -97,6 +101,7 @@ public class FlowGraphBuilderLogLineTests
Assert.Single(StepOf(graph, FlowStepKind.RouteCall).Logs!);
}
/// <summary>Verifies that a log line with an unknown step id falls back to the anchor.</summary>
[Fact]
public void LogLine_UnknownStepId_FallsBackToAnchor()
{
@@ -108,6 +113,7 @@ public class FlowGraphBuilderLogLineTests
Assert.Equal(0, graph.UnattachedLogLines);
}
/// <summary>Verifies that a log line with no anchor falls back to the first step.</summary>
[Fact]
public void LogLine_NoAnchor_FallsBackToFirstStep()
{
@@ -119,6 +125,7 @@ public class FlowGraphBuilderLogLineTests
Assert.Equal(0, graph.UnattachedLogLines);
}
/// <summary>Verifies that a log line whose execution has no step is counted as unattached.</summary>
[Fact]
public void LogLine_NoStepInExecution_IsCountedUnattached()
{
@@ -130,6 +137,7 @@ public class FlowGraphBuilderLogLineTests
Assert.All(graph.Steps, s => Assert.True(s.Logs is null or { Count: 0 }));
}
/// <summary>Verifies that building from log lines only returns an empty graph with the unattached count.</summary>
[Fact]
public void Build_LinesOnly_ReturnsEmptyGraphWithUnattachedCount()
{
@@ -141,6 +149,7 @@ public class FlowGraphBuilderLogLineTests
Assert.True(graph.LogsTruncated);
}
/// <summary>Verifies that lines within the same millisecond are ordered by sequence with null sequences last.</summary>
[Fact]
public void Lines_OrderBySeqWithinSameMillisecond_NullSeqLast()
{
@@ -160,6 +169,7 @@ public class FlowGraphBuilderLogLineTests
Assert.Equal(new[] { "one", "two", "three", "null" }, logs.Select(l => l.Message).ToArray());
}
/// <summary>Verifies that log lines never become graph steps.</summary>
[Fact]
public void LogLines_NeverBecomeSteps()
{
@@ -177,6 +187,7 @@ public class FlowGraphBuilderLogLineTests
Assert.DoesNotContain(graph.Edges, e => lineIds.Contains(e.FromEventId) || lineIds.Contains(e.ToEventId));
}
/// <summary>Verifies that the builder passes the logs-truncated flag through to the graph.</summary>
[Fact]
public void Build_PassesLogsTruncatedThrough()
{
@@ -188,6 +199,7 @@ public class FlowGraphBuilderLogLineTests
Assert.False(graph.Truncated);
}
/// <summary>Verifies that a log line on a folded outbound step attaches by the first row id.</summary>
[Fact]
public void LogLine_OnFoldedOutboundStep_AttachesByFirstRowId()
{