using Shouldly; using Xunit; namespace ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests; /// /// Reconnect scaffolding. Since Gitea #670 the driver has no in-driver reconnect handler (session loss is reported /// and the host re-initialises the driver — at once on a definitive loss, #676, else via the comms-loss watchdog), /// and #676 deleted the dead ReconnectPeriod option; pins that /// stored configs still carrying it parse. Outage behaviour is covered by , /// and, over the wire, OpcUaClientDriverReconnectWireTests. /// [Trait("Category", "Unit")] public sealed class OpcUaClientReconnectTests { /// Verifies that the driver starts in the Unknown state before initialization. [Fact] public void Driver_starts_unknown_pre_init() { using var drv = new OpcUaClientDriver(new OpcUaClientDriverOptions(), "opcua-reconnect"); drv.GetHealth().State.ShouldBe(Core.Abstractions.DriverState.Unknown); } }