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
@@ -9,7 +9,7 @@ namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared;
/// <summary>
/// bUnit tests for the <see cref="MoveDataConnectionDialog"/> body component
/// (M9-T24b, migrated to the DialogService.ShowAsync host in T33b). The dialog is
/// (migrated to the DialogService.ShowAsync host). The dialog is
/// now opened through <see cref="IDialogService.ShowAsync{TResult}"/>: a single
/// <c>DialogHost</c> owns the backdrop/header/focus-trap, and the body renders only
/// the target-site picker (excluding the connection's current site) plus its own
@@ -33,6 +33,7 @@ public class MoveDataConnectionDialogTests : BunitContext
private readonly IDataConnectionMoveService _service = Substitute.For<IDataConnectionMoveService>();
private readonly DialogService _dialog = new();
/// <summary>Initializes a new instance of the <c>MoveDataConnectionDialogTests</c> class.</summary>
public MoveDataConnectionDialogTests()
{
Services.AddSingleton(_service);
@@ -74,6 +75,7 @@ public class MoveDataConnectionDialogTests : BunitContext
return (host, pending);
}
/// <summary>Verifies that the dialog shown through the host renders the target site picker with the supplied options.</summary>
[Fact]
public void ShownViaHost_RendersTargetSitePicker_WithSuppliedOptions()
{
@@ -89,6 +91,7 @@ public class MoveDataConnectionDialogTests : BunitContext
Assert.Contains("PLC-1", cut.Markup);
}
/// <summary>Verifies that confirming dispatches the move command with the connection and target site ids.</summary>
[Fact]
public void Confirm_DispatchesMoveCommand_WithConnectionAndTargetSiteIds()
{
@@ -107,6 +110,7 @@ public class MoveDataConnectionDialogTests : BunitContext
_service.Received(1).MoveAsync(100, 3, Arg.Any<CancellationToken>());
}
/// <summary>Verifies that a guard error is shown inline and the dialog stays open.</summary>
[Fact]
public void GuardError_IsShownInline_AndDialogStaysOpen()
{
@@ -129,6 +133,8 @@ public class MoveDataConnectionDialogTests : BunitContext
Assert.NotNull(cut.Find("[data-test='move-connection-error']"));
}
/// <summary>Verifies that a successful move closes the dialog and resolves true.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task Success_ClosesDialog_AndResolvesTrue()
{