public void CallTwoTimes()
        {
            MethodInfo mi = typeof(MethodRepeatWatcher).GetMethod("CallMe");
            MethodRunInvoker methodRun = new MethodRunInvoker(new MockRun(), mi);
            ThreadedRepeatRunInvoker invoker = new ThreadedRepeatRunInvoker(methodRun, 2);

            MethodRepeatWatcher watcher = new MethodRepeatWatcher();
            invoker.Execute(watcher, new ArrayList());

            Assert.AreEqual(2, watcher.count);
        }
        public void CallTwoTimes()
        {
            MethodInfo               mi        = typeof(MethodRepeatWatcher).GetMethod("CallMe");
            MethodRunInvoker         methodRun = new MethodRunInvoker(new MockRun(), mi);
            ThreadedRepeatRunInvoker invoker   = new ThreadedRepeatRunInvoker(methodRun, 2);

            MethodRepeatWatcher watcher = new MethodRepeatWatcher();

            invoker.Execute(watcher, new ArrayList());

            Assert.AreEqual(2, watcher.count);
        }