bd6c0b4d3d
Add missing <returns>/<param>/<summary>/<typeparam> tags and clean up misused inheritdoc across 481 files so the documented API surface is complete. Documentation-only (zero code lines changed). The 131 remaining findings are inheritdoc-style warnings deliberately left to preserve hand-written implementation rationale (plan-decision notes, race-condition explanations).
23 lines
991 B
C#
23 lines
991 B
C#
using Shouldly;
|
|
using Xunit;
|
|
using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Drivers.Pickers;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pickers;
|
|
|
|
public sealed class AbLegacyAddressBuilderTests
|
|
{
|
|
/// <summary>Verifies that Build_Canonical returns the expected canonical address string for each file type.</summary>
|
|
/// <param name="fileType">The file type letter (e.g., N, B, F).</param>
|
|
/// <param name="fileNumber">The file number.</param>
|
|
/// <param name="element">The element index within the file.</param>
|
|
/// <param name="expected">The expected canonical address string.</param>
|
|
[Theory]
|
|
[InlineData("N", 7, 0, "N7:0")]
|
|
[InlineData("B", 3, 1, "B3:1")]
|
|
[InlineData("F", 8, 12, "F8:12")]
|
|
[InlineData("T", 4, 0, "T4:0")]
|
|
[InlineData("C", 5, 2, "C5:2")]
|
|
public void Build_Canonical(string fileType, int fileNumber, int element, string expected)
|
|
=> AbLegacyAddressBuilder.Build(fileType, fileNumber, element).ShouldBe(expected);
|
|
}
|