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:
Joseph Doherty
2026-10-07 15:05:49 -04:00
parent 0ffd4bdbea
commit 513fa1aa16
998 changed files with 17896 additions and 2395 deletions
@@ -31,6 +31,7 @@ public class VerifyEndpointResultMappingTests
return request.CreateSelfSigned(notBefore, notAfter);
}
/// <summary>Verifies that a captured certificate with a validation exception maps to an untrusted-certificate result.</summary>
[Fact]
public void CapturedCert_WithValidationException_MapsToUntrustedCertificate()
{
@@ -55,6 +56,7 @@ public class VerifyEndpointResultMappingTests
Assert.NotNull(result.Error);
}
/// <summary>Verifies that a captured certificate without an exception still maps to an untrusted-certificate result.</summary>
[Fact]
public void CapturedCert_WithoutException_MapsToUntrustedCertificate()
{
@@ -70,6 +72,7 @@ public class VerifyEndpointResultMappingTests
Assert.Equal(cert.Thumbprint, result.Cert!.Thumbprint);
}
/// <summary>Verifies that a timeout exception maps to a timeout result.</summary>
[Fact]
public void TimeoutException_MapsToTimeout()
{
@@ -80,6 +83,7 @@ public class VerifyEndpointResultMappingTests
Assert.Null(result.Cert);
}
/// <summary>Verifies that an operation-canceled exception maps to a timeout result.</summary>
[Fact]
public void OperationCanceledException_MapsToTimeout()
{
@@ -90,6 +94,7 @@ public class VerifyEndpointResultMappingTests
Assert.Null(result.Cert);
}
/// <summary>Verifies that a ServiceResultException with a bad-request timeout code maps to a timeout result.</summary>
[Fact]
public void ServiceResultException_BadRequestTimeout_MapsToTimeout()
{
@@ -101,6 +106,8 @@ public class VerifyEndpointResultMappingTests
Assert.Equal(VerifyFailureKind.Timeout, result.FailureKind);
}
/// <summary>Verifies that ServiceResultException authentication status codes map to an auth-failed result.</summary>
/// <param name="statusCode">The status code.</param>
[Theory]
[InlineData(StatusCodes.BadUserAccessDenied)]
[InlineData(StatusCodes.BadIdentityTokenRejected)]
@@ -116,6 +123,8 @@ public class VerifyEndpointResultMappingTests
Assert.Null(result.Cert);
}
/// <summary>Verifies that ServiceResultException connection status codes map to an unreachable result.</summary>
/// <param name="statusCode">The status code.</param>
[Theory]
[InlineData(StatusCodes.BadConnectionRejected)]
[InlineData(StatusCodes.BadNotConnected)]
@@ -129,6 +138,7 @@ public class VerifyEndpointResultMappingTests
Assert.Equal(VerifyFailureKind.Unreachable, result.FailureKind);
}
/// <summary>Verifies that a socket exception maps to an unreachable result.</summary>
[Fact]
public void SocketException_MapsToUnreachable()
{
@@ -141,6 +151,7 @@ public class VerifyEndpointResultMappingTests
Assert.Equal(VerifyFailureKind.Unreachable, result.FailureKind);
}
/// <summary>Verifies that a socket exception wrapped in a ServiceResultException maps to an unreachable result.</summary>
[Fact]
public void SocketExceptionWrappedInServiceResult_MapsToUnreachable()
{
@@ -156,6 +167,7 @@ public class VerifyEndpointResultMappingTests
Assert.Equal(VerifyFailureKind.Unreachable, result.FailureKind);
}
/// <summary>Verifies that a generic exception maps to a server-error result.</summary>
[Fact]
public void GenericException_MapsToServerError()
{
@@ -167,6 +179,7 @@ public class VerifyEndpointResultMappingTests
Assert.NotNull(result.Error);
}
/// <summary>Verifies that a null exception with no captured certificate maps to a success result.</summary>
[Fact]
public void NullException_NullCert_MapsToSuccess()
{