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
@@ -7,7 +7,7 @@ using ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Repositories;
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design;
/// <summary>
/// Tests for the schema-library read-accessor (M9-T32c) that T30's schema-driven
/// Tests for the schema-library read-accessor that the schema-driven
/// value-entry forms reuse to resolve <c>{"$ref":"lib:Name"}</c> pointers. It projects
/// <see cref="ISharedSchemaRepository"/> onto a name → schema-JSON map (and a single-name
/// lookup) over a fresh DI scope. The repository is substituted and registered scoped so
@@ -25,6 +25,8 @@ public class SchemaLibraryQueryServiceTests
return (service, repo);
}
/// <summary>Verifies that the schema map associates each library name with its schema JSON.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task GetSchemaMapAsync_MapsNameToSchemaJson()
{
@@ -42,6 +44,8 @@ public class SchemaLibraryQueryServiceTests
Assert.Equal("{\"type\":\"array\"}", map["GeoPoint"]);
}
/// <summary>Verifies that an empty library yields an empty schema map.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task GetSchemaMapAsync_EmptyLibrary_ReturnsEmptyMap()
{
@@ -53,6 +57,8 @@ public class SchemaLibraryQueryServiceTests
Assert.Empty(map);
}
/// <summary>Verifies that resolving a known name returns its schema JSON.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task ResolveAsync_KnownName_ReturnsSchemaJson()
{
@@ -65,6 +71,8 @@ public class SchemaLibraryQueryServiceTests
Assert.Equal("{\"type\":\"object\"}", json);
}
/// <summary>Verifies that resolving an unknown name returns null.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task ResolveAsync_UnknownName_ReturnsNull()
{
@@ -74,6 +82,8 @@ public class SchemaLibraryQueryServiceTests
Assert.Null(await service.ResolveAsync("Missing"));
}
/// <summary>Verifies that resolving an empty name returns null without querying the repository.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task ResolveAsync_EmptyName_ReturnsNull_WithoutHittingRepo()
{