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 FocasAddressBuilderTests
{
    [Theory]
    [InlineData("axis", 5, "axis:5")]
    [InlineData("spindle", 0, "spindle:0")]
    [InlineData("program", 100, "program:100")]
    [InlineData("status", 1, "status:1")]
    public void Build_Canonical(string group, int parameterId, string expected)
        => FocasAddressBuilder.Build(group, parameterId).ShouldBe(expected);
}
