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
@@ -10,7 +10,7 @@ using ZB.MOM.WW.ScadaBridge.Commons.Messages.Management;
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Components;
/// <summary>
/// Covers the M7-B6 (T15/T16) additions to <c>NodeBrowserDialog</c>: the
/// Covers the search additions to <c>NodeBrowserDialog</c>: the
/// address-space search box that renders <see cref="IBrowseService.SearchAsync"/>
/// matches as a flat selectable list, and that selecting a search result feeds
/// the SAME selection mechanism the tree uses (so the dialog's existing
@@ -20,6 +20,7 @@ public class NodeBrowserDialogSearchTests : BunitContext
{
private readonly IBrowseService _browse = Substitute.For<IBrowseService>();
/// <summary>Initializes the test context with a substituted browse service that returns an empty root.</summary>
public NodeBrowserDialogSearchTests()
{
Services.AddSingleton(_browse);
@@ -63,6 +64,7 @@ public class NodeBrowserDialogSearchTests : BunitContext
private Func<string?> _capturedSelection = () => null;
/// <summary>Verifies that search matches render as rows carrying the expected data-test hooks.</summary>
[Fact]
public void Search_RendersMatchRows_WithDataTestHooks()
{
@@ -84,6 +86,7 @@ public class NodeBrowserDialogSearchTests : BunitContext
Assert.Contains("Double", cut.Markup);
}
/// <summary>Verifies that clicking a search result raises the selection callback with the node id.</summary>
[Fact]
public void ClickingSearchResult_RaisesSelectionCallback_WithNodeId()
{
@@ -106,6 +109,7 @@ public class NodeBrowserDialogSearchTests : BunitContext
Assert.Equal("ns=2;s=Pump1.Speed", _capturedSelection());
}
/// <summary>Verifies that submitting a blank query clears the displayed search results.</summary>
[Fact]
public void BlankQuery_ClearsResults()
{
@@ -125,6 +129,7 @@ public class NodeBrowserDialogSearchTests : BunitContext
Assert.Empty(cut.FindAll("[data-test=node-search-result]"));
}
/// <summary>Verifies that a blank query after a failed search clears the stale failure alert.</summary>
[Fact]
public void BlankQueryAfterFailure_ClearsStaleFailureAlert()
{