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:
+17
@@ -79,7 +79,10 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
private sealed class StubAuthStateProvider : AuthenticationStateProvider
|
||||
{
|
||||
private readonly AuthenticationState _state;
|
||||
/// <summary>Initializes the provider with the authentication state it will return.</summary>
|
||||
/// <param name="state">The authentication state returned to callers.</param>
|
||||
public StubAuthStateProvider(AuthenticationState state) => _state = state;
|
||||
/// <inheritdoc />
|
||||
public override Task<AuthenticationState> GetAuthenticationStateAsync()
|
||||
=> Task.FromResult(_state);
|
||||
}
|
||||
@@ -100,6 +103,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
|
||||
// ── Paging ────────────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that the initial load requests page one from the server and never reads every instance.</summary>
|
||||
[Fact]
|
||||
public void InitialLoad_RequestsPageOneFromTheServer_AndNeverReadsEveryInstance()
|
||||
{
|
||||
@@ -115,6 +119,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
_templateRepo.DidNotReceiveWithAnyArgs().GetAllInstancesAsync();
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the server-reported total count drives the pager rather than the rows on screen.</summary>
|
||||
[Fact]
|
||||
public void TotalCountFromServer_DrivesThePager_NotTheRowsOnScreen()
|
||||
{
|
||||
@@ -133,6 +138,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
Assert.Contains("6", cut.Find("ul.pagination").TextContent);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that moving to the next page re-queries the server for page two.</summary>
|
||||
[Fact]
|
||||
public void NextPage_RequeriesTheServerForPageTwo()
|
||||
{
|
||||
@@ -148,6 +154,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
Assert.Equal(2, call.Page);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a single-page result renders no pager.</summary>
|
||||
[Fact]
|
||||
public void SinglePageResult_RendersNoPager()
|
||||
{
|
||||
@@ -160,6 +167,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
|
||||
// ── Status tiles ──────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that the status tiles show server-computed counts rather than counts of the visible page.</summary>
|
||||
[Fact]
|
||||
public void Tiles_RenderServerComputedCounts_NotCountsOfTheVisiblePage()
|
||||
{
|
||||
@@ -179,6 +187,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
Assert.Contains("400", cut.Find("[data-test=\"deploy-tile-all\"]").TextContent);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that clicking a status tile applies the filter on the server and resets to page one.</summary>
|
||||
[Fact]
|
||||
public void ClickingAStatusTile_AppliesTheFilterServerSide_AndResetsToPageOne()
|
||||
{
|
||||
@@ -197,6 +206,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
Assert.Equal("true", cut.Find("[data-test=\"deploy-tile-failed\"]").GetAttribute("aria-pressed"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that clicking the active status tile again clears the status filter.</summary>
|
||||
[Fact]
|
||||
public void ClickingTheActiveTileAgain_ClearsTheStatusFilter()
|
||||
{
|
||||
@@ -214,6 +224,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
|
||||
// ── Site scoping ──────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that a system-wide user queries with no site scope.</summary>
|
||||
[Fact]
|
||||
public void SystemWideUser_QueriesWithNoSiteScope()
|
||||
{
|
||||
@@ -224,6 +235,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
Assert.Null(Assert.Single(_pageCalls).Filter.SiteIdScope);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a site-scoped user's permitted site ids are pushed into the query.</summary>
|
||||
[Fact]
|
||||
public void SiteScopedUser_PushesThePermittedSiteIdsIntoTheQuery()
|
||||
{
|
||||
@@ -238,6 +250,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
|
||||
// ── Filter debounce ───────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that search input is debounced so a burst of keystrokes issues a single query.</summary>
|
||||
[Fact]
|
||||
public void SearchInput_IsDebounced_SoABurstOfKeystrokesIssuesOneQuery()
|
||||
{
|
||||
@@ -263,6 +276,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
Assert.Equal(1, call.Page);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that clearing the filters resets the search text and status and re-queries the server.</summary>
|
||||
[Fact]
|
||||
public void ClearFilters_ResetsSearchAndStatus_AndRequeries()
|
||||
{
|
||||
@@ -280,6 +294,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
Assert.Equal(1, call.Page);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the clear-filters button is enabled as soon as the operator types, not only once the debounce fires.</summary>
|
||||
[Fact]
|
||||
public void ClearFilters_IsEnabledAsSoonAsTheOperatorTypes_NotOnlyOnceTheDebounceFires()
|
||||
{
|
||||
@@ -294,6 +309,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
Assert.False(cut.Find("[data-test=\"deploy-clear-filters\"]").HasAttribute("disabled"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that disposing the page with an armed filter timer does not issue a query.</summary>
|
||||
[Fact]
|
||||
public void DisposeWithAnArmedFilterTimer_DoesNotQuery()
|
||||
{
|
||||
@@ -311,6 +327,7 @@ public class DeploymentsServerPagingTests : BunitContext
|
||||
|
||||
// ── Rendering ─────────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that the instance name comes from the joined server row rather than a client-side lookup table.</summary>
|
||||
[Fact]
|
||||
public void InstanceName_ComesFromTheJoinedRow_NotAClientSideLookupTable()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user