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:
@@ -12,6 +12,7 @@ namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared;
|
||||
/// </summary>
|
||||
public class DarkModeToggleTests : BunitContext
|
||||
{
|
||||
/// <summary>Initializes the bUnit context with loose JavaScript interop for the dark mode toggle.</summary>
|
||||
public DarkModeToggleTests()
|
||||
{
|
||||
// Loose mode: unconfigured interop returns default. We configure the two
|
||||
@@ -19,6 +20,7 @@ public class DarkModeToggleTests : BunitContext
|
||||
JSInterop.Mode = JSRuntimeMode.Loose;
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the toggle renders a button with the toggle dark mode aria label.</summary>
|
||||
[Fact]
|
||||
public void Renders_Button_WithToggleDarkModeAriaLabel()
|
||||
{
|
||||
@@ -30,6 +32,7 @@ public class DarkModeToggleTests : BunitContext
|
||||
Assert.NotNull(button);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a persisted light preference renders the button with aria-pressed false on first render.</summary>
|
||||
[Fact]
|
||||
public void OnFirstRender_PersistedLight_AriaPressedFalse()
|
||||
{
|
||||
@@ -44,6 +47,7 @@ public class DarkModeToggleTests : BunitContext
|
||||
Assert.NotNull(cut.Find("i.bi-moon-stars"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a persisted dark preference renders the button with aria-pressed true on first render.</summary>
|
||||
[Fact]
|
||||
public void OnFirstRender_PersistedDark_AriaPressedTrue()
|
||||
{
|
||||
@@ -61,6 +65,7 @@ public class DarkModeToggleTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that clicking the button invokes the toggle and reflects the new state.</summary>
|
||||
[Fact]
|
||||
public void Click_InvokesToggle_AndReflectsNewState()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user