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:
+7
@@ -12,6 +12,7 @@ public class MxGatewayEndpointConfigValidatorTests
|
||||
ApiKey = "key",
|
||||
};
|
||||
|
||||
/// <summary>Verifies that a valid config passes validation.</summary>
|
||||
[Fact]
|
||||
public void Validate_ValidConfig_IsValid()
|
||||
{
|
||||
@@ -20,6 +21,7 @@ public class MxGatewayEndpointConfigValidatorTests
|
||||
Assert.Empty(result.Errors);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a missing endpoint fails validation.</summary>
|
||||
[Fact]
|
||||
public void Validate_MissingEndpoint_Fails()
|
||||
{
|
||||
@@ -33,6 +35,8 @@ public class MxGatewayEndpointConfigValidatorTests
|
||||
&& e.Message.Contains("required", StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that an endpoint with an unsupported scheme fails validation.</summary>
|
||||
/// <param name="url">The endpoint URL with the bad scheme.</param>
|
||||
[Theory]
|
||||
[InlineData("opc.tcp://x:4840")]
|
||||
[InlineData("ftp://x")]
|
||||
@@ -46,6 +50,7 @@ public class MxGatewayEndpointConfigValidatorTests
|
||||
Assert.Contains(r.Errors, e => e.EntityName == "Endpoint");
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a missing API key fails validation.</summary>
|
||||
[Fact]
|
||||
public void Validate_MissingApiKey_Fails()
|
||||
{
|
||||
@@ -56,6 +61,7 @@ public class MxGatewayEndpointConfigValidatorTests
|
||||
Assert.Contains(r.Errors, e => e.EntityName == "ApiKey");
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a non-positive read timeout fails validation.</summary>
|
||||
[Fact]
|
||||
public void Validate_NonPositiveReadTimeout_Fails()
|
||||
{
|
||||
@@ -66,6 +72,7 @@ public class MxGatewayEndpointConfigValidatorTests
|
||||
Assert.Contains(r.Errors, e => e.EntityName == "ReadTimeoutMs");
|
||||
}
|
||||
|
||||
/// <summary>Verifies that prefixed field names appear in the validation errors.</summary>
|
||||
[Fact]
|
||||
public void Validate_PrefixedFieldNames_AppearInErrors()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user