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:
@@ -5,7 +5,7 @@ using ZB.MOM.WW.ScadaBridge.CentralUI.Components.Shared;
|
||||
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared;
|
||||
|
||||
/// <summary>
|
||||
/// Regression tests for CentralUI-016. <c>DataTable</c> looped
|
||||
/// Regression tests for the <c>DataTable</c> pager, which looped
|
||||
/// <c>for i = 1..totalPages</c> and emitted one numbered <c><li></c>
|
||||
/// button per page; a few thousand records at page size 25 rendered hundreds
|
||||
/// of buttons into the diff on every state change. The fix windows the pager
|
||||
@@ -27,6 +27,7 @@ public class DataTablePagerTests : BunitContext
|
||||
=> cut.FindAll("ul.pagination li.page-item button")
|
||||
.Count(b => int.TryParse(b.TextContent.Trim(), out _));
|
||||
|
||||
/// <summary>Verifies that a pager with thousands of pages renders a window of buttons rather than every page.</summary>
|
||||
[Fact]
|
||||
public void Pager_WithThousandsOfPages_RendersWindowedNotEveryPage()
|
||||
{
|
||||
@@ -40,6 +41,7 @@ public class DataTablePagerTests : BunitContext
|
||||
$"Expected a windowed pager (<= 12 numbered buttons) but rendered {numbered}.");
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a pager over a small dataset still renders a button for every page.</summary>
|
||||
[Fact]
|
||||
public void Pager_SmallDataset_StillRendersEveryPage()
|
||||
{
|
||||
@@ -51,6 +53,7 @@ public class DataTablePagerTests : BunitContext
|
||||
Assert.Equal(5, numbered);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the windowed pager always includes the first and last pages around the current page.</summary>
|
||||
[Fact]
|
||||
public void Pager_WindowedAroundCurrentPage_AlwaysIncludesFirstAndLast()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user