Exemple #1
0
 public void isConnectedTest()
 {
     Host target = new Host(new EmptyUI()); // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.isConnected();
     Assert.AreEqual(expected, actual);
 }
Exemple #2
0
        public void RequestImageTest()
        {
            Host target = new Host(new EmptyUI()); // TODO: Initialize to an appropriate value
            target.ToggleConnection();
            bool expected = true; // TODO: Initialize to an appropriate value
            bool actual;

            //We should manually click "Connections->Connect to Remote Brain" in 5 secs
            System.Threading.Thread.Sleep(5000);

            actual = target.isConnected();

            //request image
            target.RequestImage();
            //give it some time to receive image
            System.Threading.Thread.Sleep(3000);

            Assert.AreEqual(expected, actual);

            //disconnect
        }