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:
@@ -81,7 +81,10 @@ public class DebugViewInstancePickerTests : BunitContext
|
||||
private sealed class StubAuthStateProvider : AuthenticationStateProvider
|
||||
{
|
||||
private readonly AuthenticationState _state;
|
||||
/// <summary>Initializes the provider with a fixed authentication state.</summary>
|
||||
/// <param name="state">The state.</param>
|
||||
public StubAuthStateProvider(AuthenticationState state) => _state = state;
|
||||
/// <inheritdoc />
|
||||
public override Task<AuthenticationState> GetAuthenticationStateAsync()
|
||||
=> Task.FromResult(_state);
|
||||
}
|
||||
@@ -101,6 +104,7 @@ public class DebugViewInstancePickerTests : BunitContext
|
||||
.First(r => r.TextContent.Trim() == text)
|
||||
.Click();
|
||||
|
||||
/// <summary>Verifies that the instance selector is the picker component rather than a flat select.</summary>
|
||||
[Fact]
|
||||
public void InstanceSelector_IsThePicker_NotAFlatSelect()
|
||||
{
|
||||
@@ -111,6 +115,7 @@ public class DebugViewInstancePickerTests : BunitContext
|
||||
Assert.Empty(cut.FindAll("select[data-test='debug-instance-select']"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that opening the picker shows only the root area.</summary>
|
||||
[Fact]
|
||||
public void OpeningThePicker_ShowsOnlyTheRootArea()
|
||||
{
|
||||
@@ -122,6 +127,7 @@ public class DebugViewInstancePickerTests : BunitContext
|
||||
Assert.False(rows[0].HasAttribute("data-instance-id"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that drilling down reveals only the enabled instance.</summary>
|
||||
[Fact]
|
||||
public void DrillingDown_RevealsTheEnabledInstanceOnly()
|
||||
{
|
||||
@@ -139,6 +145,7 @@ public class DebugViewInstancePickerTests : BunitContext
|
||||
r => r.TextContent.Contains("Off01"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that picking an instance fills the field and enables the Connect button.</summary>
|
||||
[Fact]
|
||||
public void PickingAnInstance_FillsTheField_AndEnablesConnect()
|
||||
{
|
||||
@@ -211,6 +218,7 @@ public class DebugViewInstancePickerTests : BunitContext
|
||||
JSInterop.VerifyInvoke("localStorage.removeItem");
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the picker is disabled while the view is connected.</summary>
|
||||
[Fact]
|
||||
public void WhileConnected_ThePickerIsDisabled()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user