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:
@@ -22,6 +22,7 @@ public class DialogHostShowAsyncTests : BunitContext
|
||||
{
|
||||
private readonly DialogService _service = new();
|
||||
|
||||
/// <summary>Initializes the test class and registers the dialog services.</summary>
|
||||
public DialogHostShowAsyncTests()
|
||||
{
|
||||
// Register the concrete service as the interface so DialogHost (which
|
||||
@@ -32,6 +33,8 @@ public class DialogHostShowAsyncTests : BunitContext
|
||||
JSInterop.Mode = JSRuntimeMode.Loose;
|
||||
}
|
||||
|
||||
/// <summary>Verifies that ShowAsync renders a custom body and resolves the typed result.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task ShowAsync_RendersCustomBody_AndResolvesTypedResult()
|
||||
{
|
||||
@@ -68,6 +71,8 @@ public class DialogHostShowAsyncTests : BunitContext
|
||||
Assert.Equal("done", await pending);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that cancelling resolves ShowAsync with null.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task ShowAsync_CancelResolvesNull()
|
||||
{
|
||||
@@ -94,6 +99,8 @@ public class DialogHostShowAsyncTests : BunitContext
|
||||
Assert.Null(await pending);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that pressing Escape resolves ShowAsync with null.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task ShowAsync_EscapeResolvesNull()
|
||||
{
|
||||
@@ -119,6 +126,8 @@ public class DialogHostShowAsyncTests : BunitContext
|
||||
Assert.Null(await pending);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that ShowAsync applies the size class to the modal dialog.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task ShowAsync_AppliesSizeClassToModalDialog()
|
||||
{
|
||||
@@ -137,6 +146,8 @@ public class DialogHostShowAsyncTests : BunitContext
|
||||
Assert.Contains("modal-lg", dialog.ClassList);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the backdrop carries the token hook class.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Backdrop_HasTokenHookClass()
|
||||
{
|
||||
@@ -157,6 +168,8 @@ public class DialogHostShowAsyncTests : BunitContext
|
||||
Assert.Contains("sb-modal-backdrop", backdrop.ClassList);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that Confirm still resolves true, with no regression.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Confirm_StillResolvesTrue_NoRegression()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user