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:
@@ -15,6 +15,7 @@ public class TemplatePickerDialogTests : BunitContext
|
||||
{
|
||||
private readonly DialogService _service = new();
|
||||
|
||||
/// <summary>Registers the dialog service and loose JS interop the picker dialog needs.</summary>
|
||||
public TemplatePickerDialogTests()
|
||||
{
|
||||
Services.AddSingleton<IDialogService>(_service);
|
||||
@@ -65,6 +66,8 @@ public class TemplatePickerDialogTests : BunitContext
|
||||
private static AngleSharp.Dom.IElement Label(IRenderedComponent<DialogHost> cut, string text) =>
|
||||
cut.FindAll(".tv-label").First(l => l.TextContent.Trim() == text);
|
||||
|
||||
/// <summary>Verifies that the Select button is disabled until a template is clicked.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Select_IsDisabled_UntilATemplateIsClicked()
|
||||
{
|
||||
@@ -73,6 +76,8 @@ public class TemplatePickerDialogTests : BunitContext
|
||||
Assert.Contains("Select a template", cut.Find("[data-test='picker-status']").TextContent);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that clicking a template and then Select resolves the dialog with that template's id.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task ClickingTemplate_ThenSelect_ResolvesItsId()
|
||||
{
|
||||
@@ -88,6 +93,8 @@ public class TemplatePickerDialogTests : BunitContext
|
||||
Assert.Equal(7, (await pending)!.TemplateId);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that double-clicking a template resolves the dialog with that template.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task DoubleClickingTemplate_Resolves()
|
||||
{
|
||||
@@ -98,6 +105,8 @@ public class TemplatePickerDialogTests : BunitContext
|
||||
Assert.Equal(7, (await pending)!.TemplateId);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that clicking a folder selects nothing.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task ClickingFolder_SelectsNothing()
|
||||
{
|
||||
@@ -106,6 +115,8 @@ public class TemplatePickerDialogTests : BunitContext
|
||||
Assert.True(cut.Find("button[data-test='picker-select']").HasAttribute("disabled"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that Cancel resolves the dialog with null.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Cancel_ResolvesNull()
|
||||
{
|
||||
@@ -114,6 +125,8 @@ public class TemplatePickerDialogTests : BunitContext
|
||||
Assert.Null(await pending);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the initial template id is revealed in the tree and highlighted.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task InitialTemplateId_IsRevealedAndHighlighted()
|
||||
{
|
||||
@@ -125,6 +138,8 @@ public class TemplatePickerDialogTests : BunitContext
|
||||
Assert.Contains("text-primary", Label(cut, "Deep").ClassName);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that typing in the search box filters the tree.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Search_FiltersTree()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user