public void Test_Enumerate_OpcDa_Servers() { var enumerator = new OpcServerEnumeratorAuto(); var serverDescriptions = enumerator.Enumerate("", OpcServerCategory.OpcDaServers); serverDescriptions.Should().ContainSingle(s => s.ProgId == "Matrikon.OPC.Simulation.1"); serverDescriptions.Should().ContainSingle(s => s.Uri.Segments[1] == "Matrikon.OPC.Simulation.1"); }
public void Test_Enumerate_Hosts() { var enumerator = new OpcServerEnumeratorAuto(); var hosts = enumerator.EnumrateHosts(); hosts.Should().Contain(enumerator.Localhost); }