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
-1
@@ -16,7 +16,7 @@ using ConnectionCertificates =
|
||||
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Covers the M7-B10 (T17) connection-certificates management page: an
|
||||
/// Covers the connection-certificates management page: an
|
||||
/// Administrator-gated page that resolves a data connection's owning site, lists
|
||||
/// the site's trusted-peer / rejected certificates via
|
||||
/// <see cref="ICertManagementService.ListAsync"/>, and removes a certificate via
|
||||
@@ -31,6 +31,7 @@ public class ConnectionCertificatesTests : BunitContext
|
||||
private const int ConnectionId = 7;
|
||||
private const string SiteIdentifier = "plant-a";
|
||||
|
||||
/// <summary>Initializes the test context and registers the services the page requires.</summary>
|
||||
public ConnectionCertificatesTests()
|
||||
{
|
||||
Services.AddSingleton(_certs);
|
||||
@@ -84,6 +85,7 @@ public class ConnectionCertificatesTests : BunitContext
|
||||
return host.FindComponent<ConnectionCertificates>();
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the page lists both certificates from the owning site.</summary>
|
||||
[Fact]
|
||||
public void Lists_Two_Certs_From_Owning_Site()
|
||||
{
|
||||
@@ -105,6 +107,7 @@ public class ConnectionCertificatesTests : BunitContext
|
||||
_certs.Received(1).ListAsync(SiteIdentifier, Arg.Any<CancellationToken>());
|
||||
}
|
||||
|
||||
/// <summary>Verifies that removing a certificate calls RemoveAsync with the site identifier and thumbprint.</summary>
|
||||
[Fact]
|
||||
public void Remove_Calls_RemoveAsync_With_SiteIdentifier_And_Thumbprint()
|
||||
{
|
||||
@@ -119,6 +122,7 @@ public class ConnectionCertificatesTests : BunitContext
|
||||
_certs.Received(1).RemoveAsync(SiteIdentifier, "AAAA1111", Arg.Any<CancellationToken>());
|
||||
}
|
||||
|
||||
/// <summary>Verifies that an empty certificate store shows the empty-state note.</summary>
|
||||
[Fact]
|
||||
public void Empty_Store_Shows_Empty_Note()
|
||||
{
|
||||
@@ -131,6 +135,7 @@ public class ConnectionCertificatesTests : BunitContext
|
||||
Assert.Empty(cut.FindAll("[data-test=cert-row]"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a list failure shows a load error.</summary>
|
||||
[Fact]
|
||||
public void List_Failure_Shows_Load_Error()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user