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:
@@ -23,6 +23,7 @@ public class HttpAuditActorAccessorTests
|
||||
/// </summary>
|
||||
private sealed class StubHttpContextAccessor : IHttpContextAccessor
|
||||
{
|
||||
/// <summary>Gets or sets the http context.</summary>
|
||||
public HttpContext? HttpContext { get; set; }
|
||||
}
|
||||
|
||||
@@ -35,6 +36,7 @@ public class HttpAuditActorAccessorTests
|
||||
return ctx;
|
||||
}
|
||||
|
||||
/// <summary>Verifies that current actor, when authenticated, returns username claim.</summary>
|
||||
[Fact]
|
||||
public void CurrentActor_Authenticated_ReturnsUsernameClaim()
|
||||
{
|
||||
@@ -48,6 +50,7 @@ public class HttpAuditActorAccessorTests
|
||||
Assert.Equal("alice", accessor.CurrentActor);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that current actor, when authenticated, no username claim falls back to identity name.</summary>
|
||||
[Fact]
|
||||
public void CurrentActor_Authenticated_NoUsernameClaim_FallsBackToIdentityName()
|
||||
{
|
||||
@@ -61,6 +64,7 @@ public class HttpAuditActorAccessorTests
|
||||
Assert.Equal("bob", accessor.CurrentActor);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that current actor, when authenticated, prefers username over zb name.</summary>
|
||||
[Fact]
|
||||
public void CurrentActor_Authenticated_PrefersUsernameOverZbName()
|
||||
{
|
||||
@@ -75,6 +79,7 @@ public class HttpAuditActorAccessorTests
|
||||
Assert.Equal("svc-user", accessor.CurrentActor);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that current actor, when unauthenticated, returns null.</summary>
|
||||
[Fact]
|
||||
public void CurrentActor_Unauthenticated_ReturnsNull()
|
||||
{
|
||||
@@ -91,6 +96,7 @@ public class HttpAuditActorAccessorTests
|
||||
Assert.Null(accessor.CurrentActor);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that current actor, when no ambient http context, returns null.</summary>
|
||||
[Fact]
|
||||
public void CurrentActor_NoAmbientHttpContext_ReturnsNull()
|
||||
{
|
||||
@@ -100,6 +106,7 @@ public class HttpAuditActorAccessorTests
|
||||
Assert.Null(accessor.CurrentActor);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that current actor, when authenticated but no usable name, returns null.</summary>
|
||||
[Fact]
|
||||
public void CurrentActor_AuthenticatedButNoUsableName_ReturnsNull()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user