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:
@@ -13,6 +13,7 @@ public class OffsetPagerTests : BunitContext
|
||||
{
|
||||
// ── PrevDisabled_OnFirstPage ──────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that the previous button is disabled on the first page.</summary>
|
||||
[Fact]
|
||||
public void PrevDisabled_OnFirstPage()
|
||||
{
|
||||
@@ -27,6 +28,7 @@ public class OffsetPagerTests : BunitContext
|
||||
|
||||
// ── NextDisabled_WhenNoNextPage ───────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that the next button is disabled when there is no next page.</summary>
|
||||
[Fact]
|
||||
public void NextDisabled_WhenNoNextPage()
|
||||
{
|
||||
@@ -41,6 +43,7 @@ public class OffsetPagerTests : BunitContext
|
||||
|
||||
// ── Next_Click_EmitsPagePlusOne ───────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that clicking next emits the current page plus one.</summary>
|
||||
[Fact]
|
||||
public void Next_Click_EmitsPagePlusOne()
|
||||
{
|
||||
@@ -58,6 +61,7 @@ public class OffsetPagerTests : BunitContext
|
||||
|
||||
// ── Prev_Click_EmitsPageMinusOne ─────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that clicking previous emits the current page minus one.</summary>
|
||||
[Fact]
|
||||
public void Prev_Click_EmitsPageMinusOne()
|
||||
{
|
||||
@@ -75,6 +79,7 @@ public class OffsetPagerTests : BunitContext
|
||||
|
||||
// ── Summary_RendersPageOfTotal ────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that the summary renders the current page out of the total.</summary>
|
||||
[Fact]
|
||||
public void Summary_RendersPageOfTotal()
|
||||
{
|
||||
@@ -92,6 +97,7 @@ public class OffsetPagerTests : BunitContext
|
||||
|
||||
// ── HideWhenSinglePage_HidesBar_OnSinglePage ──────────────────────────────
|
||||
|
||||
/// <summary>Verifies that hide-when-single-page hides the bar when there is only one page.</summary>
|
||||
[Fact]
|
||||
public void HideWhenSinglePage_HidesBar_OnSinglePage()
|
||||
{
|
||||
@@ -109,6 +115,7 @@ public class OffsetPagerTests : BunitContext
|
||||
|
||||
// ── HideWhenSinglePage_HidesBar_OnEmptyResult ─────────────────────────────
|
||||
|
||||
/// <summary>Verifies that hide-when-single-page hides the bar when the result is empty.</summary>
|
||||
[Fact]
|
||||
public void HideWhenSinglePage_HidesBar_OnEmptyResult()
|
||||
{
|
||||
@@ -124,6 +131,7 @@ public class OffsetPagerTests : BunitContext
|
||||
|
||||
// ── HideWhenSinglePage_ShowsBar_WhenMultiplePages ─────────────────────────
|
||||
|
||||
/// <summary>Verifies that hide-when-single-page shows the bar when there are multiple pages.</summary>
|
||||
[Fact]
|
||||
public void HideWhenSinglePage_ShowsBar_WhenMultiplePages()
|
||||
{
|
||||
@@ -141,6 +149,7 @@ public class OffsetPagerTests : BunitContext
|
||||
// TotalCount is null (the host cannot count), so single-page-ness is not
|
||||
// provable — the bar must stay so the user can still reach a further page.
|
||||
|
||||
/// <summary>Verifies that hide-when-single-page shows the bar when the total count is unknown.</summary>
|
||||
[Fact]
|
||||
public void HideWhenSinglePage_ShowsBar_WhenTotalCountUnknown()
|
||||
{
|
||||
@@ -157,6 +166,7 @@ public class OffsetPagerTests : BunitContext
|
||||
// Default (opt-out) behaviour: consumers that use the summary as their only
|
||||
// "N total" readout keep the bar on a single page.
|
||||
|
||||
/// <summary>Verifies that with hide-when-single-page off the bar stays visible on a single page.</summary>
|
||||
[Fact]
|
||||
public void HideWhenSinglePage_Off_KeepsBarVisible_OnSinglePage()
|
||||
{
|
||||
@@ -171,6 +181,7 @@ public class OffsetPagerTests : BunitContext
|
||||
|
||||
// ── BothDisabled_WhenDisabled ─────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that both navigation buttons are disabled when the pager is disabled.</summary>
|
||||
[Fact]
|
||||
public void BothDisabled_WhenDisabled()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user