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 +10,7 @@ public class ScriptTriggerConfigCodecTests
|
||||
{
|
||||
// ── Parse: mode field ──────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that parsing a conditional trigger without a mode defaults to on-true.</summary>
|
||||
[Fact]
|
||||
public void Parse_Conditional_WithoutMode_DefaultsToOnTrue()
|
||||
{
|
||||
@@ -20,6 +21,7 @@ public class ScriptTriggerConfigCodecTests
|
||||
Assert.Equal(ScriptTriggerMode.OnTrue, model.Mode);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that parsing a conditional trigger reads the while-true mode.</summary>
|
||||
[Fact]
|
||||
public void Parse_Conditional_WhileTrue_IsRead()
|
||||
{
|
||||
@@ -31,6 +33,7 @@ public class ScriptTriggerConfigCodecTests
|
||||
Assert.Equal(ScriptTriggerMode.WhileTrue, model.Mode);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that parsing an expression trigger without a mode defaults to on-true.</summary>
|
||||
[Fact]
|
||||
public void Parse_Expression_WithoutMode_DefaultsToOnTrue()
|
||||
{
|
||||
@@ -41,6 +44,7 @@ public class ScriptTriggerConfigCodecTests
|
||||
Assert.Equal(ScriptTriggerMode.OnTrue, model.Mode);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that parsing an expression trigger reads the while-true mode.</summary>
|
||||
[Fact]
|
||||
public void Parse_Expression_WhileTrue_IsRead()
|
||||
{
|
||||
@@ -52,6 +56,7 @@ public class ScriptTriggerConfigCodecTests
|
||||
Assert.Equal(ScriptTriggerMode.WhileTrue, model.Mode);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that parsing an unrecognized mode defaults to on-true.</summary>
|
||||
[Fact]
|
||||
public void Parse_UnrecognizedMode_DefaultsToOnTrue()
|
||||
{
|
||||
@@ -65,6 +70,7 @@ public class ScriptTriggerConfigCodecTests
|
||||
|
||||
// ── Serialize: mode field ──────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that serializing a while-true conditional trigger writes the mode.</summary>
|
||||
[Fact]
|
||||
public void Serialize_Conditional_WhileTrue_WritesMode()
|
||||
{
|
||||
@@ -81,6 +87,7 @@ public class ScriptTriggerConfigCodecTests
|
||||
Assert.Contains("\"mode\":\"WhileTrue\"", json);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that serializing a while-true expression trigger writes the mode.</summary>
|
||||
[Fact]
|
||||
public void Serialize_Expression_WhileTrue_WritesMode()
|
||||
{
|
||||
@@ -97,6 +104,8 @@ public class ScriptTriggerConfigCodecTests
|
||||
|
||||
// ── Round-trip ─────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that a conditional trigger's mode survives a serialize and parse round trip.</summary>
|
||||
/// <param name="whileTrue">Whether the trigger uses the while-true mode.</param>
|
||||
[Theory]
|
||||
[InlineData(false)]
|
||||
[InlineData(true)]
|
||||
@@ -119,6 +128,8 @@ public class ScriptTriggerConfigCodecTests
|
||||
|
||||
// ── SupportsMinTimeBetweenRuns ─────────────────────────────────────────
|
||||
|
||||
/// <summary>Verifies that automatic trigger types that throttle support a minimum time between runs.</summary>
|
||||
/// <param name="triggerType">The trigger type under test.</param>
|
||||
[Theory]
|
||||
[InlineData("ValueChange")]
|
||||
[InlineData("Conditional")]
|
||||
@@ -128,6 +139,8 @@ public class ScriptTriggerConfigCodecTests
|
||||
Assert.True(ScriptTriggerConfigCodec.SupportsMinTimeBetweenRuns(triggerType));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that interval, call, none and unknown trigger types do not support a minimum time between runs.</summary>
|
||||
/// <param name="triggerType">The trigger type under test, or null.</param>
|
||||
[Theory]
|
||||
[InlineData("Interval")] // has its own period control
|
||||
[InlineData("Call")] // invoked explicitly — no throttle applies
|
||||
@@ -138,6 +151,8 @@ public class ScriptTriggerConfigCodecTests
|
||||
Assert.False(ScriptTriggerConfigCodec.SupportsMinTimeBetweenRuns(triggerType));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that an expression trigger's mode survives a serialize and parse round trip.</summary>
|
||||
/// <param name="whileTrue">Whether the trigger uses the while-true mode.</param>
|
||||
[Theory]
|
||||
[InlineData(false)]
|
||||
[InlineData(true)]
|
||||
|
||||
Reference in New Issue
Block a user