reportActivity() public method

public reportActivity ( ) : void
return void
        public void allowCommand_NotTimedOut_ReturnTrue()
        {
            wd = new MarsRover.WatchDogCore();
            wd.reportActivity();

            Assert.AreEqual(wd.allowCommand(), true);
        }
        public void allowCommand_NotTimedOut_ReturnTrue()
        {
            wd = new MarsRover.WatchDogCore();
            wd.reportActivity();

            Assert.AreEqual(wd.allowCommand(), true);
        }
        public void reportActivity_TimedOut_AllowComandBecomesTrue()
        {
            wd = new MarsRover.WatchDogCore();
            Thread.Sleep(5000);

            bool before = wd.allowCommand();
            wd.reportActivity();
            bool after = wd.allowCommand();

            Assert.AreNotEqual(before, after);
            Assert.AreEqual(after, true);
        }
        public void reportActivity_TimedOut_AllowComandBecomesTrue()
        {
            wd = new MarsRover.WatchDogCore();
            Thread.Sleep(5000);

            bool before = wd.allowCommand();

            wd.reportActivity();
            bool after = wd.allowCommand();

            Assert.AreNotEqual(before, after);
            Assert.AreEqual(after, true);
        }
        public void reportActivity_NotTimedOut_AllowCommandAlwaysTrue()
        {
            int delay = 500;
            wd = new MarsRover.WatchDogCore();

            int i;
            for (i = 0; i < 10000; i += delay)
            {
                Thread.Sleep(delay);
                wd.reportActivity();

                Assert.AreEqual(wd.allowCommand(), true);
            }
        }
        public void reportActivity_NotTimedOut_AllowCommandAlwaysTrue()
        {
            int delay = 500;

            wd = new MarsRover.WatchDogCore();

            int i;

            for (i = 0; i < 10000; i += delay)
            {
                Thread.Sleep(delay);
                wd.reportActivity();

                Assert.AreEqual(wd.allowCommand(), true);
            }
        }
 protected override void MessageReceivedHandler(int NumberOfAvailableData)
 {
     base.MessageReceivedHandler(NumberOfAvailableData);
     _wd.reportActivity();
 }