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:
+10
@@ -6,6 +6,7 @@ public class JsonSchemaShapeParserTests
|
||||
{
|
||||
// ── JSON Schema (post-migration) ─────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that a JSON schema parses into scalar parameters with their required flags.</summary>
|
||||
[Fact]
|
||||
public void Parameters_JsonSchema_ScalarsAndRequired()
|
||||
{
|
||||
@@ -24,6 +25,7 @@ public class JsonSchemaShapeParserTests
|
||||
p => { Assert.Equal("active", p.Name); Assert.Equal("Boolean", p.Type); Assert.True(p.Required); });
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a JSON schema array of strings becomes a list of strings.</summary>
|
||||
[Fact]
|
||||
public void Parameters_JsonSchema_ArrayOfStringsBecomesListString()
|
||||
{
|
||||
@@ -40,12 +42,14 @@ public class JsonSchemaShapeParserTests
|
||||
Assert.False(tags.Required);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a JSON schema number return type parses as a number.</summary>
|
||||
[Fact]
|
||||
public void Return_JsonSchema_Number()
|
||||
{
|
||||
Assert.Equal("Float", JsonSchemaShapeParser.ParseReturnType(@"{""type"":""number""}"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a JSON schema array of integers return type parses as a list of integers.</summary>
|
||||
[Fact]
|
||||
public void Return_JsonSchema_ArrayOfIntegers()
|
||||
{
|
||||
@@ -55,6 +59,7 @@ public class JsonSchemaShapeParserTests
|
||||
|
||||
// ── Legacy flat shape (pre-migration safety net) ─────────────────────────
|
||||
|
||||
/// <summary>Verifies that the legacy flat array parameter format still parses.</summary>
|
||||
[Fact]
|
||||
public void Parameters_Legacy_FlatArrayStillParses()
|
||||
{
|
||||
@@ -66,6 +71,7 @@ public class JsonSchemaShapeParserTests
|
||||
p => { Assert.Equal("y", p.Name); Assert.Equal("String", p.Type); Assert.False(p.Required); });
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the legacy list sentinel return format still parses.</summary>
|
||||
[Fact]
|
||||
public void Return_Legacy_ListSentinelStillParses()
|
||||
{
|
||||
@@ -75,6 +81,7 @@ public class JsonSchemaShapeParserTests
|
||||
|
||||
// ── Edge cases ────────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that null parameters yield an empty list.</summary>
|
||||
[Fact]
|
||||
public void Parameters_Null_ReturnsEmpty()
|
||||
{
|
||||
@@ -83,6 +90,7 @@ public class JsonSchemaShapeParserTests
|
||||
Assert.Empty(JsonSchemaShapeParser.ParseParameters(" "));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that malformed parameters yield an empty list.</summary>
|
||||
[Fact]
|
||||
public void Parameters_Malformed_ReturnsEmpty()
|
||||
{
|
||||
@@ -90,6 +98,7 @@ public class JsonSchemaShapeParserTests
|
||||
Assert.Empty(JsonSchemaShapeParser.ParseParameters("42"));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a null return definition yields null.</summary>
|
||||
[Fact]
|
||||
public void Return_Null_ReturnsNull()
|
||||
{
|
||||
@@ -97,6 +106,7 @@ public class JsonSchemaShapeParserTests
|
||||
Assert.Null(JsonSchemaShapeParser.ParseReturnType(""));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a schema with no properties yields an empty parameter list.</summary>
|
||||
[Fact]
|
||||
public void Parameters_SchemaWithNoProperties_ReturnsEmpty()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user