예제 #1
0
        public void TestNetworkConnection()
        {
            var network     = new InsteonNetwork();
            var connections = network.GetAvailableNetworkConnections(true);

            foreach (var connection in connections)
            {
                if (!network.IsConnected)
                {
                    network.Connect(connection);
                }
            }
        }
예제 #2
0
        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);
            }
        }