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
@@ -13,7 +13,7 @@ using NotificationListsPage = ZB.MOM.WW.ScadaBridge.CentralUI.Components.Pages.N
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Pages;
/// <summary>
/// bUnit rendering tests for the standalone Notification Lists page (Task 7).
/// bUnit rendering tests for the standalone Notification Lists page.
/// </summary>
public class NotificationListsPageTests : BunitContext
{
@@ -32,6 +32,7 @@ public class NotificationListsPageTests : BunitContext
Services.AddTestConfigurationMutations();
}
/// <summary>Verifies that the page renders a row for each notification list.</summary>
[Fact]
public void RendersNotificationListRows()
{
@@ -54,6 +55,7 @@ public class NotificationListsPageTests : BunitContext
});
}
/// <summary>Verifies that the page shows an empty state when there are no lists.</summary>
[Fact]
public void ShowsEmptyState_WhenNoLists()
{
@@ -70,6 +72,7 @@ public class NotificationListsPageTests : BunitContext
Assert.Contains("No notification lists", cut.Markup));
}
/// <summary>Verifies that deleting a list confirms, deletes it and reloads the list.</summary>
[Fact]
public void DeleteList_ConfirmsThenDeletesAndReloads()
{
@@ -100,6 +103,7 @@ public class NotificationListsPageTests : BunitContext
});
}
/// <summary>Verifies that the type column renders SMS for an SMS list.</summary>
[Fact]
public void RendersTypeColumn_Sms()
{
@@ -125,6 +129,7 @@ public class NotificationListsPageTests : BunitContext
});
}
/// <summary>Verifies that an SMS list recipient badge shows the phone number instead of empty angle brackets.</summary>
[Fact]
public void SmsListRecipientBadge_ShowsPhoneNumber_NotEmptyAngleBrackets()
{
@@ -154,6 +159,7 @@ public class NotificationListsPageTests : BunitContext
});
}
/// <summary>Verifies that the type column renders Email for an email list.</summary>
[Fact]
public void RendersTypeColumn_Email()
{
@@ -192,19 +198,28 @@ public class NotificationListsPageTests : BunitContext
/// <summary>A dialog service that auto-confirms, so action paths run end-to-end.</summary>
private sealed class AlwaysConfirmDialogService : IDialogService
{
/// <inheritdoc />
public Task<bool> ConfirmAsync(string title, string message, bool danger = false, string? confirmLabel = null)
=> Task.FromResult(true);
// Register row 75 added a DialogSeverity overload. This stub auto-confirms
// regardless of severity — it exists to let action paths run end to end, not to
// assert anything about styling.
/// <inheritdoc />
public Task<bool> ConfirmAsync(string title, string message, DialogSeverity severity, string? confirmLabel = null)
=> Task.FromResult(true);
/// <inheritdoc />
public Task<string?> PromptAsync(
string title, string label, string initialValue = "", string? placeholder = null)
=> Task.FromResult<string?>(null);
/// <summary>Returns a completed task with the default result without showing a dialog.</summary>
/// <typeparam name="TResult">The dialog result type.</typeparam>
/// <param name="title">The dialog title.</param>
/// <param name="body">The dialog body fragment.</param>
/// <param name="size">The optional dialog size.</param>
/// <returns>A task that resolves to the default result.</returns>
public Task<TResult?> ShowAsync<TResult>(
string title,
Microsoft.AspNetCore.Components.RenderFragment<DialogContext<TResult>> body,