679484ae78
Task 3/4/5: SupportsOnlineDiscovery => true on AbCipDriver, TwinCATDriver, FocasDriver (their device enumeration is real, config-gated on EnableControllerBrowse / FixedTree.Enabled which PatchForBrowse guarantees at open). One gate fact per driver test project.
20 lines
675 B
C#
20 lines
675 B
C#
using Shouldly;
|
|
using Xunit;
|
|
using ZB.MOM.WW.OtOpcUa.Core.Abstractions;
|
|
using ZB.MOM.WW.OtOpcUa.Driver.TwinCAT;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests;
|
|
|
|
[Trait("Category", "Unit")]
|
|
public sealed class TwinCATDiscoveryGateTests
|
|
{
|
|
/// <summary>TwinCAT opts into the universal discovery browser — its ADS symbol upload is real
|
|
/// device enumeration (config-gated on EnableControllerBrowse, guaranteed by PatchForBrowse at open).</summary>
|
|
[Fact]
|
|
public void SupportsOnlineDiscovery_IsTrue()
|
|
{
|
|
var drv = new TwinCATDriver(new TwinCATDriverOptions(), "drv-1");
|
|
((ITagDiscovery)drv).SupportsOnlineDiscovery.ShouldBeTrue();
|
|
}
|
|
}
|