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:
+6
-1
@@ -4,7 +4,7 @@ using ZB.MOM.WW.ScadaBridge.DataConnectionLayer.Adapters;
|
||||
namespace ZB.MOM.WW.ScadaBridge.DataConnectionLayer.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// M2.4 (#8) regression: standard OPC UA A&C events carry an event-type
|
||||
/// Regression: standard OPC UA A&C events carry an event-type
|
||||
/// <see cref="NodeId"/> (e.g. <c>i=9341</c> for ExclusiveLevelAlarmType), but the
|
||||
/// client-side conditionFilter gate — and the server-side WhereClause — both key off
|
||||
/// the friendly type names in <see cref="RealOpcUaClient.KnownConditionTypeIds"/>.
|
||||
@@ -14,6 +14,7 @@ namespace ZB.MOM.WW.ScadaBridge.DataConnectionLayer.Tests;
|
||||
/// </summary>
|
||||
public class RealOpcUaClientAlarmFilterTests
|
||||
{
|
||||
/// <summary>Verifies that a known standard node id resolves to its friendly alarm type name.</summary>
|
||||
[Fact]
|
||||
public void ResolveAlarmTypeName_KnownStandardNodeId_ReturnsFriendlyName()
|
||||
{
|
||||
@@ -23,6 +24,7 @@ public class RealOpcUaClientAlarmFilterTests
|
||||
Assert.Equal("ExclusiveLevelAlarmType", resolved);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a discrete alarm node id resolves to its friendly alarm type name.</summary>
|
||||
[Fact]
|
||||
public void ResolveAlarmTypeName_DiscreteAlarmNodeId_ReturnsFriendlyName()
|
||||
{
|
||||
@@ -30,6 +32,7 @@ public class RealOpcUaClientAlarmFilterTests
|
||||
Assert.Equal("DiscreteAlarmType", resolved);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that an unknown custom node id resolves to its node id string.</summary>
|
||||
[Fact]
|
||||
public void ResolveAlarmTypeName_UnknownCustomNodeId_ReturnsNodeIdString()
|
||||
{
|
||||
@@ -42,12 +45,14 @@ public class RealOpcUaClientAlarmFilterTests
|
||||
Assert.Equal(custom.ToString(), resolved);
|
||||
}
|
||||
|
||||
/// <summary>Verifies that a null node id resolves to an empty string.</summary>
|
||||
[Fact]
|
||||
public void ResolveAlarmTypeName_Null_ReturnsEmptyString()
|
||||
{
|
||||
Assert.Equal("", RealOpcUaClient.ResolveAlarmTypeName(null));
|
||||
}
|
||||
|
||||
/// <summary>Verifies that the inverse map round-trips every known condition type.</summary>
|
||||
[Fact]
|
||||
public void InverseMap_RoundTrips_EveryKnownConditionType()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user