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:
+13
@@ -34,6 +34,7 @@ public class InstanceConfigureMesReportableTests
|
||||
private static string InstanceConfigureMarkup
|
||||
=> File.ReadAllText(Path.Combine(DeploymentComponentsRoot, "InstanceConfigure.razor"));
|
||||
|
||||
/// <summary>Verifies that the override modal has a tri-state MES-reportable select.</summary>
|
||||
[Fact]
|
||||
public void OverrideModal_HasTriStateMesReportableSelect()
|
||||
{
|
||||
@@ -57,6 +58,10 @@ public class InstanceConfigureMesReportableTests
|
||||
Assert.Contains("value=\"false\"", selectBody);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that setting only the MES-reportable flag counts as an override delta.</summary>
|
||||
/// <param name="overrideJson">The override json.</param>
|
||||
/// <param name="priority">The priority.</param>
|
||||
/// <param name="mesReportable">The mes reportable.</param>
|
||||
[Theory]
|
||||
// The new term: a reportable-only override is a real delta in BOTH directions
|
||||
// (false is not "no override" — it pins a reportable template alarm off).
|
||||
@@ -66,6 +71,10 @@ public class InstanceConfigureMesReportableTests
|
||||
string? overrideJson, int? priority, bool? mesReportable)
|
||||
=> Assert.True(InstanceConfigure.HasOverrideDelta(overrideJson, priority, mesReportable));
|
||||
|
||||
/// <summary>Verifies that an override with nothing set is not a delta.</summary>
|
||||
/// <param name="overrideJson">The override json.</param>
|
||||
/// <param name="priority">The priority.</param>
|
||||
/// <param name="mesReportable">The mes reportable.</param>
|
||||
[Theory]
|
||||
[InlineData(null, null, null)]
|
||||
[InlineData("", null, null)]
|
||||
@@ -74,6 +83,10 @@ public class InstanceConfigureMesReportableTests
|
||||
string? overrideJson, int? priority, bool? mesReportable)
|
||||
=> Assert.False(InstanceConfigure.HasOverrideDelta(overrideJson, priority, mesReportable));
|
||||
|
||||
/// <summary>Verifies that the existing override terms still count as a delta.</summary>
|
||||
/// <param name="overrideJson">The override json.</param>
|
||||
/// <param name="priority">The priority.</param>
|
||||
/// <param name="mesReportable">The mes reportable.</param>
|
||||
[Theory]
|
||||
[InlineData("{\"hi\":70}", null, null)]
|
||||
[InlineData(null, 750, null)]
|
||||
|
||||
Reference in New Issue
Block a user