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:
@@ -17,6 +17,7 @@ public class MessageConventionTests
|
||||
&& !t.Name.StartsWith("<") // exclude compiler-generated types
|
||||
&& (t.IsClass || (t.IsValueType && !t.IsPrimitive)));
|
||||
|
||||
/// <summary>Verifies that every message type is a record.</summary>
|
||||
[Fact]
|
||||
public void AllMessageTypes_ShouldBeRecords()
|
||||
{
|
||||
@@ -29,6 +30,7 @@ public class MessageConventionTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Verifies that every message timestamp property is a <c>DateTimeOffset</c>.</summary>
|
||||
[Fact]
|
||||
public void AllMessageTimestampProperties_ShouldBeDateTimeOffset()
|
||||
{
|
||||
@@ -46,6 +48,7 @@ public class MessageConventionTests
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a deploy-instance command survives a JSON round trip.</summary>
|
||||
[Fact]
|
||||
public void JsonRoundTrip_DeployInstanceCommand_ShouldSucceed()
|
||||
{
|
||||
@@ -60,6 +63,7 @@ public class MessageConventionTests
|
||||
Assert.Equal(msg.InstanceUniqueName, deserialized.InstanceUniqueName);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that JSON containing an unknown field still deserializes.</summary>
|
||||
[Fact]
|
||||
public void JsonForwardCompatibility_UnknownField_ShouldDeserialize()
|
||||
{
|
||||
@@ -72,6 +76,7 @@ public class MessageConventionTests
|
||||
Assert.Equal("dep-1", deserialized!.DeploymentId);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that JSON missing an optional field still deserializes.</summary>
|
||||
[Fact]
|
||||
public void JsonBackwardCompatibility_MissingOptionalField_ShouldDeserialize()
|
||||
{
|
||||
@@ -85,6 +90,7 @@ public class MessageConventionTests
|
||||
Assert.Null(deserialized.ErrorMessage);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a site health report survives a JSON round trip.</summary>
|
||||
[Fact]
|
||||
public void JsonRoundTrip_SiteHealthReport_ShouldSucceed()
|
||||
{
|
||||
@@ -110,6 +116,7 @@ public class MessageConventionTests
|
||||
Assert.Equal(1, deserialized.SequenceNumber);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a deploy-artifacts command survives a JSON round trip.</summary>
|
||||
[Fact]
|
||||
public void JsonRoundTrip_DeployArtifactsCommand_ShouldSucceed()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user