예제 #1
0
파일: HostTest.cs 프로젝트: tkram01/see3po
 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);
 }
예제 #2
0
파일: HostTest.cs 프로젝트: tkram01/see3po
        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
        }