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
@@ -40,6 +40,7 @@ public class InstanceCreateTemplateFieldTests : BunitContext
private readonly IAuditService _audit = Substitute.For<IAuditService>();
private readonly DialogService _dialog = new();
/// <summary>Initializes a new instance of the <c>InstanceCreateTemplateFieldTests</c> class.</summary>
public InstanceCreateTemplateFieldTests()
{
Services.AddSingleton(_repo);
@@ -144,6 +145,7 @@ public class InstanceCreateTemplateFieldTests : BunitContext
/// <summary>Wrapper that renders InstanceCreate next to a DialogHost, as MainLayout does.</summary>
public sealed class TestHostWrapper : ComponentBase
{
/// <inheritdoc />
protected override void BuildRenderTree(RenderTreeBuilder builder)
{
builder.OpenComponent<InstanceCreatePage>(0);
@@ -158,6 +160,7 @@ public class InstanceCreateTemplateFieldTests : BunitContext
.First(li => li.QuerySelector(".tv-label")!.TextContent.Trim() == label)
.QuerySelector(".tv-toggle")!.Click();
/// <summary>Verifies that template field is read only with choose button and placeholder.</summary>
[Fact]
public void TemplateField_IsReadOnlyWithChooseButton_AndPlaceholder()
{
@@ -169,6 +172,7 @@ public class InstanceCreateTemplateFieldTests : BunitContext
Assert.NotNull(cut.Find("button[data-test='create-template-choose']"));
}
/// <summary>Verifies that template id query prefills field with folder path.</summary>
[Fact]
public void TemplateIdQuery_PrefillsFieldWithFolderPath()
{
@@ -177,6 +181,7 @@ public class InstanceCreateTemplateFieldTests : BunitContext
Assert.Equal("A / B / Deep", cut.Find("input[data-test='create-template']").GetAttribute("value"));
}
/// <summary>Verifies that unknown template id query leaves field empty and shows hint.</summary>
[Fact]
public void UnknownTemplateIdQuery_LeavesFieldEmpty_AndShowsHint()
{
@@ -186,6 +191,7 @@ public class InstanceCreateTemplateFieldTests : BunitContext
Assert.Contains("Template 999 no longer exists", cut.Markup);
}
/// <summary>Verifies that no templates disables choose and links to templates page.</summary>
[Fact]
public void NoTemplates_DisablesChoose_AndLinksToTemplatesPage()
{
@@ -195,6 +201,8 @@ public class InstanceCreateTemplateFieldTests : BunitContext
Assert.Contains("/design/templates", cut.Markup);
}
/// <summary>Verifies that choosing in picker sets template and re previews bindings when site set.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task ChoosingInPicker_SetsTemplate_AndRePreviewsBindingsWhenSiteSet()
{