public void TestNetworkConnection() { var network = new InsteonNetwork(); var connections = network.GetAvailableNetworkConnections(true); foreach (var connection in connections) { if (!network.IsConnected) { network.Connect(connection); } } }
public void TestSerialConnection() { var network = new InsteonNetwork(); var connections = network.GetAvailableSerialConnections(); foreach (var connection in connections) { if (!network.IsConnected) { network.Connect(connection); } Assert.IsTrue(network.IsConnected); } }