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:
@@ -12,7 +12,7 @@ namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Layout;
|
||||
|
||||
/// <summary>
|
||||
/// bUnit rendering tests for the rail <see cref="NavMenu"/>. After the
|
||||
/// ZB.MOM.WW.Theme adoption (Task 2.4) the nav is composed of the kit's
|
||||
/// ZB.MOM.WW.Theme adoption the nav is composed of the kit's
|
||||
/// <c>NavRailSection</c> (a native <c><details></c> disclosure, expanded
|
||||
/// by default — no JS interop, works in static SSR) and <c>NavRailItem</c>
|
||||
/// links. These tests verify the structure (sections render as
|
||||
@@ -74,6 +74,7 @@ public class NavMenuTests : BunitContext
|
||||
return host.FindComponent<NavMenu>();
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a Viewer sees the Flow Debugger link and no empty Notifications section.</summary>
|
||||
[Fact]
|
||||
public void Viewer_HasFlowDebuggerAndNoEmptyNotificationsSection()
|
||||
{
|
||||
@@ -85,6 +86,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that nav sections render as kit details disclosures that are expanded by default.</summary>
|
||||
[Fact]
|
||||
public void Sections_RenderAsKitDetailsDisclosures_ExpandedByDefault()
|
||||
{
|
||||
@@ -108,6 +110,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Deployment section renders all of its items for a Deployer.</summary>
|
||||
[Fact]
|
||||
public void DeploymentSection_RendersAllItems_ForDeployer()
|
||||
{
|
||||
@@ -121,6 +124,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Notifications section shows all of its items for a user with multiple roles.</summary>
|
||||
[Fact]
|
||||
public void NotificationsSection_ShowsAllItems_ForMultiRoleUser()
|
||||
{
|
||||
@@ -136,6 +140,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that an Administrator-only user sees only the SMTP item in the Notifications section.</summary>
|
||||
[Fact]
|
||||
public void NotificationsSection_AdminOnlyUser_SeesOnlySmtp()
|
||||
{
|
||||
@@ -150,6 +155,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the old routes are no longer linked from the nav.</summary>
|
||||
[Fact]
|
||||
public void OldRoutes_AreNoLongerLinked()
|
||||
{
|
||||
@@ -162,6 +168,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Secrets link in the Admin section is visible to an Administrator.</summary>
|
||||
[Fact]
|
||||
public void AdminSection_SecretsLink_VisibleForAdministrator()
|
||||
{
|
||||
@@ -174,6 +181,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the Secrets link in the Admin section is absent for a non-Administrator.</summary>
|
||||
[Fact]
|
||||
public void AdminSection_SecretsLink_AbsentForNonAdministrator()
|
||||
{
|
||||
@@ -193,6 +201,7 @@ public class NavMenuTests : BunitContext
|
||||
// is the witness — its heading lives inside the policy block, so a denied
|
||||
// user must not even see the eyebrow.
|
||||
|
||||
/// <summary>Verifies that a policy-gated section is visible to an authorized principal.</summary>
|
||||
[Fact]
|
||||
public void PolicyGatedSection_IsVisible_ForAuthorizedPrincipal()
|
||||
{
|
||||
@@ -207,6 +216,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a policy-gated section is absent for an unauthorized principal.</summary>
|
||||
[Fact]
|
||||
public void PolicyGatedSection_IsAbsent_ForUnauthorizedPrincipal()
|
||||
{
|
||||
@@ -221,6 +231,7 @@ public class NavMenuTests : BunitContext
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>Verifies that all policy-gated sections are absent for an anonymous principal.</summary>
|
||||
[Fact]
|
||||
public void PolicyGatedSections_AllAbsent_ForAnonymousPrincipal()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user