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:
+3
-1
@@ -5,7 +5,7 @@ using ZB.MOM.WW.ScadaBridge.CentralUI.Components.Shared;
|
||||
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests.Shared;
|
||||
|
||||
/// <summary>
|
||||
/// Regression tests for CentralUI-018. <c>TreeView</c>'s storage-restore path
|
||||
/// Regression tests for <c>TreeView</c>'s storage-restore path
|
||||
/// called <c>JsonSerializer.Deserialize</c> on the raw <c>treeviewStorage</c>
|
||||
/// payload outside any try block — a corrupt payload threw an uncaught
|
||||
/// <c>JsonException</c> during <c>OnAfterRenderAsync</c>, breaking the
|
||||
@@ -31,6 +31,7 @@ public class TreeViewStorageResilienceTests : BunitContext
|
||||
b.AddMarkupContent(0, $"<span>{node.Label}</span>")))
|
||||
.Add(p => p.StorageKey, "corrupt-tree"));
|
||||
|
||||
/// <summary>Verifies that restoring a corrupt JSON payload from storage does not throw and the tree still renders.</summary>
|
||||
[Fact]
|
||||
public void StorageRestore_CorruptJsonPayload_DoesNotThrow_AndStillRenders()
|
||||
{
|
||||
@@ -47,6 +48,7 @@ public class TreeViewStorageResilienceTests : BunitContext
|
||||
Assert.Contains("Beta", cut.Markup);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that restoring JSON of the wrong shape from storage does not throw.</summary>
|
||||
[Fact]
|
||||
public void StorageRestore_WrongShapeJson_DoesNotThrow()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user