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:
@@ -62,6 +62,8 @@ public class ReconcileServiceTests
|
||||
new(SiteIdentifier, "node-a",
|
||||
local.ToDictionary(x => x.Name, x => x.Rev));
|
||||
|
||||
/// <summary>Verifies that reconciliation reports missing and stale instances as gaps with fresh tokens and snapshot deployment ids, and omits current ones.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Reconcile_GapIsMissingAndStale_CurrentOmitted_WithFreshTokensAndSnapshotDeploymentIds()
|
||||
{
|
||||
@@ -99,6 +101,8 @@ public class ReconcileServiceTests
|
||||
Assert.Empty(response.OrphanNames);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a local instance name that is not expected is reported as an orphan.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Reconcile_LocalNameNotInExpected_IsReportedAsOrphan()
|
||||
{
|
||||
@@ -116,6 +120,8 @@ public class ReconcileServiceTests
|
||||
Assert.Equal("inst-Z", orphan);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that when staging a pending deployment returns false and a row already exists, the gap carries the existing token.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Reconcile_StagePendingReturnsFalse_ExistingRowPresent_ReturnsExistingTokenInGap()
|
||||
{
|
||||
@@ -162,6 +168,8 @@ public class ReconcileServiceTests
|
||||
Assert.True(gapC.IsEnabled);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that when staging a pending deployment returns false and no row exists, that gap item is omitted.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Reconcile_StagePendingReturnsFalse_NoExistingRow_OmitsThatGapItem()
|
||||
{
|
||||
@@ -192,6 +200,8 @@ public class ReconcileServiceTests
|
||||
Assert.DoesNotContain(response.Gap, g => g.InstanceUniqueName == "inst-C");
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a gap item whose snapshot is missing is skipped.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Reconcile_SnapshotMissing_SkipsGapItem()
|
||||
{
|
||||
@@ -207,6 +217,8 @@ public class ReconcileServiceTests
|
||||
Assert.Empty(response.OrphanNames);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that reconciling an unknown site returns an empty response without throwing.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Reconcile_UnknownSite_ReturnsEmptyResponse_NoThrow()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user