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:
@@ -14,6 +14,7 @@ public class FormatResolutionTests
|
||||
return (formatOption, root);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that an explicit format flag overrides the configured default format.</summary>
|
||||
[Fact]
|
||||
public void ResolveFormat_ExplicitFlag_OverridesConfig()
|
||||
{
|
||||
@@ -26,10 +27,11 @@ public class FormatResolutionTests
|
||||
Assert.Equal("table", format);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the configured default format is used when the format flag is absent.</summary>
|
||||
[Fact]
|
||||
public void ResolveFormat_FlagAbsent_UsesConfigDefaultFormat()
|
||||
{
|
||||
// Regression for CLI-001: when --format is not supplied, the config-file /
|
||||
// Regression: when --format is not supplied, the config-file /
|
||||
// env-var DefaultFormat must be honoured instead of always falling back to "json".
|
||||
var (formatOption, root) = BuildHarness();
|
||||
var result = root.Parse(Array.Empty<string>());
|
||||
@@ -40,6 +42,7 @@ public class FormatResolutionTests
|
||||
Assert.Equal("table", format);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the format defaults to JSON when the flag and the configuration are both absent.</summary>
|
||||
[Fact]
|
||||
public void ResolveFormat_FlagAbsent_AndNoConfig_DefaultsToJson()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user