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:
@@ -14,6 +14,7 @@ public class HostStartupTests : IDisposable
|
||||
{
|
||||
private readonly List<IDisposable> _disposables = new();
|
||||
|
||||
/// <summary>Releases the resources held by this test class.</summary>
|
||||
public void Dispose()
|
||||
{
|
||||
foreach (var d in _disposables)
|
||||
@@ -22,6 +23,7 @@ public class HostStartupTests : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Central role starts without error.</summary>
|
||||
[Fact]
|
||||
public void CentralRole_StartsWithoutError()
|
||||
{
|
||||
@@ -29,7 +31,7 @@ public class HostStartupTests : IDisposable
|
||||
// Set the environment to Central so appsettings.Central.json is loaded,
|
||||
// and set DOTNET_ENVIRONMENT before the factory creates the host.
|
||||
var previousEnv = Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT");
|
||||
// Host-003: connection strings are externalised; supply them via env vars.
|
||||
// Connection strings are externalised; supply them via env vars.
|
||||
using var dbEnv = new CentralDbTestEnvironment();
|
||||
try
|
||||
{
|
||||
@@ -68,6 +70,7 @@ public class HostStartupTests : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Site role starts without error.</summary>
|
||||
[Fact]
|
||||
public void SiteRole_StartsWithoutError()
|
||||
{
|
||||
@@ -98,6 +101,7 @@ public class HostStartupTests : IDisposable
|
||||
Assert.NotNull(app.Services);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Site role configures Kestrel for gRPC.</summary>
|
||||
[Fact]
|
||||
public void SiteRole_ConfiguresKestrelForGrpc()
|
||||
{
|
||||
@@ -143,6 +147,7 @@ public class HostStartupTests : IDisposable
|
||||
(app as IDisposable)?.Dispose();
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Host project does not use conditional compilation.</summary>
|
||||
[Fact]
|
||||
public void HostProject_DoesNotUseConditionalCompilation()
|
||||
{
|
||||
@@ -165,6 +170,7 @@ public class HostStartupTests : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the program registers an unhandled-exception exit handler.</summary>
|
||||
[Fact]
|
||||
public void Program_RegistersUnhandledExceptionExitHandler()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user