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:
+5
@@ -41,6 +41,7 @@ public class TopologyDisableConfirmLabelTests : BunitContext
|
||||
private readonly IAuditService _audit = Substitute.For<IAuditService>();
|
||||
private readonly DialogService _dialog = new();
|
||||
|
||||
/// <summary>Initializes the test host with stubbed services and the dialog service.</summary>
|
||||
public TopologyDisableConfirmLabelTests()
|
||||
{
|
||||
Services.AddSingleton(_repo);
|
||||
@@ -111,6 +112,7 @@ public class TopologyDisableConfirmLabelTests : BunitContext
|
||||
/// <summary>Wrapper so the page and the dialog host share one render tree.</summary>
|
||||
public sealed class TestHostWrapper : ComponentBase
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildRenderTree(RenderTreeBuilder builder)
|
||||
{
|
||||
builder.OpenComponent<TopologyPage>(0);
|
||||
@@ -151,6 +153,7 @@ public class TopologyDisableConfirmLabelTests : BunitContext
|
||||
return (cut, cut.FindAll("div.modal-footer button").ToList());
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the disable confirmation button is labelled Disable rather than Delete.</summary>
|
||||
[Fact]
|
||||
public void Disable_confirm_button_says_disable_not_delete()
|
||||
{
|
||||
@@ -162,6 +165,7 @@ public class TopologyDisableConfirmLabelTests : BunitContext
|
||||
Assert.Contains("Cancel", footer.Select(b => b.TextContent.Trim()));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the disable confirmation body names the instance being disabled.</summary>
|
||||
[Fact]
|
||||
public void Disable_confirm_body_names_the_instance()
|
||||
{
|
||||
@@ -169,6 +173,7 @@ public class TopologyDisableConfirmLabelTests : BunitContext
|
||||
Assert.Contains("Disable instance 'Pump-001'?", cut.Find(".modal-body").TextContent);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the delete confirmation button still says Delete.</summary>
|
||||
[Fact]
|
||||
public void Delete_confirm_button_still_says_delete()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user