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
@@ -1,7 +1,7 @@
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Design;
/// <summary>
/// Task 24: the template editor exposes a Native Alarm Sources subsection (a new
/// The template editor exposes a Native Alarm Sources subsection (a new
/// tab) for authoring read-only native alarm bindings. <c>TemplateEdit</c> is a
/// heavyweight page (~10 injected services with their own graphs); like the other
/// TemplateEdit coverage in this suite (see <c>TestRunWarningTests</c>), these are
@@ -28,13 +28,14 @@ public class TemplateNativeAlarmSourceEditorTests
private static string TemplateEditMarkup
=> File.ReadAllText(Path.Combine(DesignComponentsRoot, "TemplateEdit.razor"));
// M10 residual: the authoring form moved out of the page into the dialog body
// The authoring form moved out of the page into the dialog body
// component hosted by IDialogService.ShowAsync. The field-level assertions
// below follow it there; the tab, the connection filtering, and the CRUD
// wiring all still live on the page.
private static string NativeSourceDialogMarkup
=> File.ReadAllText(Path.Combine(DesignComponentsRoot, "TemplateNativeAlarmSourceDialog.razor"));
/// <summary>Verifies that the template editor has a Native Alarms tab.</summary>
[Fact]
public void TemplateEditor_HasNativeAlarmsTab()
{
@@ -45,6 +46,7 @@ public class TemplateNativeAlarmSourceEditorTests
Assert.Contains("Native Alarm Sources", markup);
}
/// <summary>Verifies that the native alarms form has connection, source filter and lock fields.</summary>
[Fact]
public void NativeAlarmsForm_HasConnectionSourceFilterAndLockFields()
{
@@ -67,10 +69,11 @@ public class TemplateNativeAlarmSourceEditorTests
Assert.Contains("@bind=\"_nasIsLocked\"", dialogMarkup);
}
/// <summary>Verifies that the native alarms form is hosted by the dialog service rather than embedded in the page.</summary>
[Fact]
public void NativeAlarmsForm_IsHostedByTheDialogService()
{
// M10 residual: the page-embedded modal is gone — the form opens through
// The page-embedded modal is gone — the form opens through
// IDialogService.ShowAsync so the host owns the backdrop, focus trap,
// Escape, and focus restoration.
var pageMarkup = TemplateEditMarkup;
@@ -83,6 +86,7 @@ public class TemplateNativeAlarmSourceEditorTests
Assert.Contains("DialogContext<bool> Context", dialogMarkup);
}
/// <summary>Verifies that native alarm add, update and delete are wired to the repository followed by a save.</summary>
[Fact]
public void NativeAlarmsCrud_WiresRepositoryAddUpdateDeleteWithSave()
{