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:
Joseph Doherty
2026-10-07 15:05:49 -04:00
parent 0ffd4bdbea
commit 513fa1aa16
998 changed files with 17896 additions and 2395 deletions
@@ -7,6 +7,7 @@ public class BindingGroupBuilderTests
private static BindingRow Row(string canonical, string? dflt, int? conn, string? ovr) =>
new(canonical, dflt, conn, ovr);
/// <summary>Verifies that groups list direct attributes first, then modules in name order.</summary>
[Fact]
public void Groups_DirectAttributesFirst_ThenModules_InNameOrder()
{
@@ -21,6 +22,7 @@ public class BindingGroupBuilderTests
groups.Select(g => g.Key));
}
/// <summary>Verifies that a nested module folds into its first path segment and keeps the nested tail.</summary>
[Fact]
public void NestedModule_FoldsIntoFirstSegment_AndKeepsNestedTail()
{
@@ -36,6 +38,7 @@ public class BindingGroupBuilderTests
Assert.Equal("Left_002", g.InferredObject);
}
/// <summary>Verifies that the inferred object is the nested object path.</summary>
[Fact]
public void InferredObject_NestedObjectPath()
{
@@ -47,6 +50,7 @@ public class BindingGroupBuilderTests
Assert.Equal("Left_002.DelmiaReceiver", Assert.Single(BindingGroupBuilder.Build(rows)).InferredObject);
}
/// <summary>Verifies that the inferred object is null and the state is mixed when members disagree.</summary>
[Fact]
public void InferredObject_NullWhenMixed_AndStateMixed()
{
@@ -60,6 +64,7 @@ public class BindingGroupBuilderTests
Assert.True(g.IsObjectMixed);
}
/// <summary>Verifies that the inferred object is null and the group is not mixed when there are no overrides.</summary>
[Fact]
public void InferredObject_NullWhenNoOverrides_NotMixed()
{
@@ -69,6 +74,7 @@ public class BindingGroupBuilderTests
Assert.False(g.IsObjectMixed);
}
/// <summary>Verifies that an instance group infers its object from the overrides.</summary>
[Fact]
public void InstanceGroup_InfersObjectFromOverrides()
{
@@ -78,6 +84,7 @@ public class BindingGroupBuilderTests
Assert.Equal("Z28061", g.InferredObject);
}
/// <summary>Verifies that the unbound count and the connection state are computed correctly.</summary>
[Fact]
public void Counts_UnboundAndConnectionState()
{
@@ -94,6 +101,7 @@ public class BindingGroupBuilderTests
Assert.Null(g.CommonConnectionId);
}
/// <summary>Verifies that the connection state is single when all members agree.</summary>
[Fact]
public void ConnectionState_SingleWhenAllAgree()
{
@@ -103,6 +111,7 @@ public class BindingGroupBuilderTests
Assert.Equal(1, g.CommonConnectionId);
}
/// <summary>Verifies that a member override that does not end with the tail counts as mixed.</summary>
[Fact]
public void MemberTail_OverrideThatDoesNotEndWithTail_CountsAsMixed()
{
@@ -112,6 +121,7 @@ public class BindingGroupBuilderTests
Assert.True(Assert.Single(BindingGroupBuilder.Build(rows)).IsObjectMixed);
}
/// <summary>Verifies that applying an object rewrites every member and sets the connection.</summary>
[Fact]
public void ApplyObject_RewritesEveryMember_AndSetsConnection()
{
@@ -126,6 +136,7 @@ public class BindingGroupBuilderTests
Assert.Equal(("RightMESReceiver.ScanStateCmd", 1, "MESReceiver_022.ScanStateCmd"), (changes[1].CanonicalName, changes[1].ConnectionId, changes[1].Override));
}
/// <summary>Verifies that applying an object with a nested tail keeps the nesting.</summary>
[Fact]
public void ApplyObject_NestedTail_KeepsNesting()
{
@@ -134,6 +145,7 @@ public class BindingGroupBuilderTests
Assert.Equal("Left_002.LeakTest.DeltaVac", c.Override);
}
/// <summary>Verifies that applying an empty object clears the overrides and keeps the connection.</summary>
[Fact]
public void ApplyObject_EmptyObject_ClearsOverrides_KeepsConnection()
{
@@ -145,6 +157,7 @@ public class BindingGroupBuilderTests
// ── Review fixes 2026-08-20 ──
/// <summary>Verifies that applying a null connection keeps each member's current connection.</summary>
[Fact]
public void ApplyObject_NullConnection_KeepsEachMembersCurrentConnection()
{
@@ -161,6 +174,7 @@ public class BindingGroupBuilderTests
Assert.All(changes, c => Assert.StartsWith("New.", c.Override!));
}
/// <summary>Verifies that the inferred object is mixed when some members are still on the bare default.</summary>
[Fact]
public void InferredObject_MixedWhenSomeMembersStillOnBareDefault()
{
@@ -172,6 +186,7 @@ public class BindingGroupBuilderTests
Assert.True(g.IsObjectMixed);
}
/// <summary>Verifies that the inferred object uses the effective reference, so a default that carries the prefix is not mixed.</summary>
[Fact]
public void InferredObject_UsesEffectiveReference_DefaultThatCarriesPrefixIsNotMixed()
{
@@ -181,6 +196,7 @@ public class BindingGroupBuilderTests
Assert.False(g.IsObjectMixed);
}
/// <summary>Verifies that with no overrides the object is inferred from the defaults when they share a prefix.</summary>
[Fact]
public void InferredObject_NoOverrides_InfersFromDefaultsWhenTheyShareAPrefix()
{
@@ -190,6 +206,7 @@ public class BindingGroupBuilderTests
Assert.False(g.IsObjectMixed);
}
/// <summary>Verifies that a group is unbound when its connection id is not a known connection.</summary>
[Fact]
public void IsUnbound_WhenConnectionIdIsNotAKnownConnection()
{