feat(otopcua): set Modbus/S7/Galaxy re-discovery policy to Once + Once-branch test (follow-up B)

This commit is contained in:
Joseph Doherty
2026-06-26 12:26:28 -04:00
parent a378b572af
commit efbdaf853c
4 changed files with 34 additions and 0 deletions
@@ -18,6 +18,17 @@ public sealed class AbLegacyDriverTests
drv.DriverInstanceId.ShouldBe("drv-1");
}
/// <summary>
/// Verifies AbLegacy opts into run-once post-connect re-discovery — it discovers its
/// complete node set synchronously from config, with no FOCAS-style background cache fill.
/// </summary>
[Fact]
public void RediscoverPolicy_is_Once()
{
var drv = new AbLegacyDriver(new AbLegacyDriverOptions(), "drv-1");
drv.RediscoverPolicy.ShouldBe(DiscoveryRediscoverPolicy.Once);
}
/// <summary>Verifies that InitializeAsync with devices assigns family profiles.</summary>
[Fact]
public async Task InitializeAsync_with_devices_assigns_family_profiles()