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:
+6
@@ -19,6 +19,7 @@ public sealed class ApiMethodKeyScopeReconcilerTests
|
||||
private static IReadOnlyDictionary<string, string> Names(params (string KeyId, string Name)[] entries) =>
|
||||
entries.ToDictionary(e => e.KeyId, e => e.Name, StringComparer.Ordinal);
|
||||
|
||||
/// <summary>Verifies that approve adds method to key preserving existing scopes.</summary>
|
||||
[Fact]
|
||||
public void Approve_AddsMethodToKey_PreservingExistingScopes()
|
||||
{
|
||||
@@ -35,6 +36,7 @@ public sealed class ApiMethodKeyScopeReconcilerTests
|
||||
Assert.Equal(new[] { "GetStatus", "PlaceOrder" }, update.NewMethods);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that approve key with no existing scopes gets just this method.</summary>
|
||||
[Fact]
|
||||
public void Approve_KeyWithNoExistingScopes_GetsJustThisMethod()
|
||||
{
|
||||
@@ -49,6 +51,7 @@ public sealed class ApiMethodKeyScopeReconcilerTests
|
||||
Assert.Equal(new[] { "PlaceOrder" }, update.NewMethods);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that revoke removes method leaving other scopes intact.</summary>
|
||||
[Fact]
|
||||
public void Revoke_RemovesMethod_LeavingOtherScopesIntact()
|
||||
{
|
||||
@@ -65,6 +68,7 @@ public sealed class ApiMethodKeyScopeReconcilerTests
|
||||
Assert.Equal(new[] { "GetStatus" }, update.NewMethods);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that revoke last scope reported as empty conflict and not in updates.</summary>
|
||||
[Fact]
|
||||
public void Revoke_LastScope_ReportedAsEmptyConflict_AndNotInUpdates()
|
||||
{
|
||||
@@ -80,6 +84,7 @@ public sealed class ApiMethodKeyScopeReconcilerTests
|
||||
Assert.Equal("Key One", emptyName);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that mixed approve one revoke another produces both updates.</summary>
|
||||
[Fact]
|
||||
public void Mixed_ApproveOneRevokeAnother_ProducesBothUpdates()
|
||||
{
|
||||
@@ -102,6 +107,7 @@ public sealed class ApiMethodKeyScopeReconcilerTests
|
||||
Assert.Equal(new[] { "Ping", "PlaceOrder" }, k2.NewMethods);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that no change produces no updates.</summary>
|
||||
[Fact]
|
||||
public void NoChange_ProducesNoUpdates()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user