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); }
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 }