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:
@@ -6,10 +6,12 @@ namespace ZB.MOM.WW.ScadaBridge.Security.Tests;
|
||||
|
||||
public class ForwardedHeadersSetupTests
|
||||
{
|
||||
/// <summary>Verifies that building with forwarded headers disabled returns null.</summary>
|
||||
[Fact]
|
||||
public void Build_Disabled_ReturnsNull()
|
||||
=> Assert.Null(ForwardedHeadersSetup.Build(new ForwardedHeadersSecurityOptions { Enabled = false }));
|
||||
|
||||
/// <summary>Verifies that enabling forwarded headers parses the proxies and networks and clears the default allow-lists.</summary>
|
||||
[Fact]
|
||||
public void Build_Enabled_ParsesProxiesAndNetworks_AndClearsDefaults()
|
||||
{
|
||||
@@ -27,6 +29,9 @@ public class ForwardedHeadersSetupTests
|
||||
Assert.Single(built.KnownIPNetworks); // net10 successor to the deprecated KnownNetworks
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a malformed proxy or network entry throws at startup.</summary>
|
||||
/// <param name="proxy">The proxy address entry under test.</param>
|
||||
/// <param name="network">The network CIDR entry under test.</param>
|
||||
[Theory]
|
||||
[InlineData("not-an-ip", "172.16.0.0/12")]
|
||||
[InlineData("10.5.0.9", "not-a-cidr")]
|
||||
|
||||
Reference in New Issue
Block a user