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
@@ -41,6 +41,7 @@ public class AuditConfigTableProjectionTests
totalCount),
new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase });
/// <summary>Verifies that projecting entries unwraps the envelope into rows.</summary>
[Fact]
public void ProjectEntries_UnwrapsTheEnvelopeIntoRows()
{
@@ -68,6 +69,7 @@ public class AuditConfigTableProjectionTests
Assert.Equal("MES", second.GetProperty("entityName").GetString());
}
/// <summary>Verifies that projecting entries drops the after-state JSON.</summary>
[Fact]
public void ProjectEntries_DropsAfterStateJson()
{
@@ -80,6 +82,7 @@ public class AuditConfigTableProjectionTests
Assert.DoesNotContain("afterStateJson", compact, StringComparison.OrdinalIgnoreCase);
}
/// <summary>Verifies that a truncated page appends a note with the total count.</summary>
[Fact]
public void ProjectEntries_TruncatedPage_AppendsTotalCountNote()
{
@@ -96,6 +99,7 @@ public class AuditConfigTableProjectionTests
Assert.False(root[2].TryGetProperty("id", out _));
}
/// <summary>Verifies that a result set returned in full emits no note column.</summary>
[Fact]
public void ProjectEntries_WholeResultSet_EmitsNoNoteColumn()
{
@@ -108,6 +112,7 @@ public class AuditConfigTableProjectionTests
Assert.DoesNotContain("note", compact, StringComparison.Ordinal);
}
/// <summary>Verifies that an empty result stays an empty array.</summary>
[Fact]
public void ProjectEntries_EmptyResult_StaysAnEmptyArray()
{
@@ -124,6 +129,7 @@ public class AuditConfigTableProjectionTests
Assert.Equal(0, doc.RootElement.GetArrayLength());
}
/// <summary>Verifies that a bare array is still projected.</summary>
[Fact]
public void ProjectEntries_BareArray_IsStillProjected()
{
@@ -143,6 +149,7 @@ public class AuditConfigTableProjectionTests
Assert.False(doc.RootElement[0].TryGetProperty("afterStateJson", out _));
}
/// <summary>Verifies that an unrecognised JSON object is returned verbatim.</summary>
[Fact]
public void ProjectEntries_UnrecognisedObject_ReturnedVerbatim()
{
@@ -152,6 +159,7 @@ public class AuditConfigTableProjectionTests
Assert.Equal(other, AuditConfigTableProjection.ProjectEntries(other));
}
/// <summary>Verifies that non-JSON input is returned verbatim.</summary>
[Fact]
public void ProjectEntries_NonJson_ReturnedVerbatim()
{
@@ -159,6 +167,7 @@ public class AuditConfigTableProjectionTests
Assert.Equal(notJson, AuditConfigTableProjection.ProjectEntries(notJson));
}
/// <summary>Verifies that the projection is substantially smaller than the raw payload.</summary>
[Fact]
public void ProjectEntries_IsSubstantiallySmallerThanTheRawPayload()
{