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:
@@ -5,6 +5,7 @@ namespace ZB.MOM.WW.ScadaBridge.CLI.Tests;
|
||||
[Collection("Console")]
|
||||
public class OutputFormatterTests
|
||||
{
|
||||
/// <summary>Verifies that JSON output is written with indentation.</summary>
|
||||
[Fact]
|
||||
public void WriteJson_WritesIndentedJson()
|
||||
{
|
||||
@@ -20,6 +21,7 @@ public class OutputFormatterTests
|
||||
Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true });
|
||||
}
|
||||
|
||||
/// <summary>Verifies that an error message is written to standard error.</summary>
|
||||
[Fact]
|
||||
public void WriteError_WritesToStdErr()
|
||||
{
|
||||
@@ -35,6 +37,7 @@ public class OutputFormatterTests
|
||||
Console.SetError(new StreamWriter(Console.OpenStandardError()) { AutoFlush = true });
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a table render includes the headers and all rows.</summary>
|
||||
[Fact]
|
||||
public void WriteTable_RendersHeadersAndRows()
|
||||
{
|
||||
@@ -61,6 +64,7 @@ public class OutputFormatterTests
|
||||
Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true });
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a table with no rows renders only its headers.</summary>
|
||||
[Fact]
|
||||
public void WriteTable_EmptyRows_ShowsHeadersOnly()
|
||||
{
|
||||
@@ -77,6 +81,7 @@ public class OutputFormatterTests
|
||||
Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true });
|
||||
}
|
||||
|
||||
/// <summary>Verifies that table column widths adjust to the widest cell content.</summary>
|
||||
[Fact]
|
||||
public void WriteTable_ColumnWidthsAdjustToContent()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user