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
@@ -28,6 +28,7 @@ public sealed class InheritanceImportTests : IDisposable
{
private readonly ServiceProvider _provider;
/// <summary>Initializes a new instance of the <see cref="InheritanceImportTests"/> class.</summary>
public InheritanceImportTests()
{
var services = new ServiceCollection();
@@ -52,6 +53,7 @@ public sealed class InheritanceImportTests : IDisposable
_provider = services.BuildServiceProvider();
}
/// <summary>Releases the resources held by this test class.</summary>
public void Dispose() => _provider.Dispose();
private async Task<byte[]> ExportAllTemplatesAsync()
@@ -110,6 +112,8 @@ public sealed class InheritanceImportTests : IDisposable
return session.SessionId;
}
/// <summary>Verifies that importing a derived template wires its parent template id.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task Import_DerivedTemplate_WiresParentTemplateId()
{
@@ -137,6 +141,8 @@ public sealed class InheritanceImportTests : IDisposable
}
}
/// <summary>Verifies that an overwrite import updates the parent edge and honours a renamed base.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task Import_Overwrite_UpdatesParentEdge_AndRenamedBaseIsHonoured()
{
@@ -167,6 +173,8 @@ public sealed class InheritanceImportTests : IDisposable
}
}
/// <summary>Verifies that importing a derived template whose base was skipped leaves the parent null and audits it as unresolved.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task Import_DerivedWithSkippedBase_LeavesNullAndAuditsUnresolved()
{
@@ -218,6 +226,8 @@ public sealed class InheritanceImportTests : IDisposable
await ctx.SaveChangesAsync();
}
/// <summary>Verifies that an overwrite import that closes an inheritance cycle throws and rolls back.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task Import_Overwrite_ThatClosesInheritanceCycle_Throws_AndRollsBack()
{
@@ -254,6 +264,8 @@ public sealed class InheritanceImportTests : IDisposable
}
}
/// <summary>Verifies that an overwrite import that closes a composition cycle throws and rolls back.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task Import_Overwrite_ThatClosesCompositionCycle_Throws_AndRollsBack()
{