using Shouldly;
using Xunit;
using ZB.MOM.WW.OtOpcUa.Core.Abstractions;
using ZB.MOM.WW.OtOpcUa.Driver.AbCip;

namespace ZB.MOM.WW.OtOpcUa.Driver.AbCip.Tests;

[Trait("Category", "Unit")]
public sealed class AbCipDiscoveryGateTests
{
    /// <summary>AbCip opts into the universal discovery browser — its CIP Symbol Object walk is real
    /// device enumeration (config-gated on EnableControllerBrowse, guaranteed by PatchForBrowse at open).</summary>
    [Fact]
    public void SupportsOnlineDiscovery_IsTrue()
    {
        var drv = new AbCipDriver(new AbCipDriverOptions(), "drv-1");
        ((ITagDiscovery)drv).SupportsOnlineDiscovery.ShouldBeTrue();
    }
}
