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:
@@ -25,6 +25,7 @@ public sealed class ConflictResolutionTests : IDisposable
|
||||
{
|
||||
private readonly ServiceProvider _provider;
|
||||
|
||||
/// <summary>Initializes the test with an in-memory configuration database and the Transport services.</summary>
|
||||
public ConflictResolutionTests()
|
||||
{
|
||||
var services = new ServiceCollection();
|
||||
@@ -41,7 +42,7 @@ public sealed class ConflictResolutionTests : IDisposable
|
||||
services.AddScoped<IExternalSystemRepository, ExternalSystemRepository>();
|
||||
services.AddScoped<INotificationRepository, NotificationRepository>();
|
||||
services.AddScoped<IInboundApiRepository, InboundApiRepository>();
|
||||
// M8: DependencyResolver now injects ISiteRepository to walk the
|
||||
// DependencyResolver now injects ISiteRepository to walk the
|
||||
// site/data-connection/instance closure; register it or activation fails.
|
||||
services.AddScoped<ISiteRepository, SiteRepository>();
|
||||
services.AddScoped<IAuditCorrelationContext, AuditCorrelationContext>();
|
||||
@@ -51,6 +52,7 @@ public sealed class ConflictResolutionTests : IDisposable
|
||||
_provider = services.BuildServiceProvider();
|
||||
}
|
||||
|
||||
/// <summary>Releases the resources held by this instance.</summary>
|
||||
public void Dispose() => _provider.Dispose();
|
||||
|
||||
/// <summary>
|
||||
@@ -94,6 +96,8 @@ public sealed class ConflictResolutionTests : IDisposable
|
||||
return session.SessionId;
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Overwrite resolution replaces the existing template's description.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Overwrite_replaces_existing_template_description()
|
||||
{
|
||||
@@ -140,6 +144,8 @@ public sealed class ConflictResolutionTests : IDisposable
|
||||
Assert.Equal(1, result.Overwritten);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Skip resolution leaves the existing template unchanged.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Skip_leaves_existing_template_unchanged()
|
||||
{
|
||||
@@ -186,6 +192,8 @@ public sealed class ConflictResolutionTests : IDisposable
|
||||
Assert.Equal(0, result.Overwritten);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Rename resolution creates a new template alongside the existing one.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Rename_creates_new_template_alongside_existing()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user