Пример #1
0
 public MemoryManager(ConnectedRobot robot)
 {
     this.robot = robot;
     playThread = new TimedBackgroundThread(40, playThreadMain);
     playThread.Start();
     loadMemories();
 }
        public void ConnectedRobot_UnitTest_3()
        {
            ConnectedRobot <SpecialMessage> robot = new ConnectedRobot <SpecialMessage>(theAddress: localAddress);

            Assert.IsNotNull(robot);
            Assert.AreEqual(localAddress, robot.IPAddress);
        }
Пример #3
0
        public SensorData(ConnectedRobot robot)
        {
            this.robot = robot;

            latencies = new Queue <long>();
            timer     = new Stopwatch();
            timer.Start();

            calibrateImage();

            updateRequestThread = new Thread(updateMain);
            updateRequestThread.IsBackground = true;
            updateRequestThread.Start();

            screenshotNumber = robot.settings.readInt("screenshotCounter", 0);
        }
        public void ConnectedRobot_UnitTest_5()
        {
            ConnectedRobot <SpecialMessage> robot = new ConnectedRobot <SpecialMessage>(theAddress: localAddress);

            Assert.IsNotNull(robot);
            Assert.AreEqual(localAddress, robot.IPAddress);
            Assert.AreEqual(false, robot.IsServerRunning);

            robot.Start();
            Thread.Sleep(100);
            Assert.AreEqual(true, robot.IsServerRunning);

            robot.Stop();
            Thread.Sleep(100);
            Assert.AreEqual(false, robot.IsServerRunning);
        }
        public void ConnectedRobot_UnitTest_2()
        {
            ConnectedRobot <SpecialMessage> robot = new ConnectedRobot <SpecialMessage>();

            Assert.IsNotNull(robot);
        }