MonBegin() публичный Метод

Starts the timer
public MonBegin ( ) : void
Результат void
        public void Thread_Timeout_Aborts()
        {
            ThreadTimeoutAborter aborter = new ThreadTimeoutAborter(Thread.CurrentThread, 50);
            try
            {
                aborter.MonBegin();
                Thread.Sleep(100);
                aborter.MonEnd();

                Assert.Fail("Thread does not get aborted when over time limit.");
            }
            catch (ThreadAbortException ex)
            {
                Thread.ResetAbort();
                Assert.IsTrue(true, "Thread gets aborted exceeding time limit.");
            }
        }
 public void Thread_NoTimeout_Continues()
 {
     ThreadTimeoutAborter aborter = new ThreadTimeoutAborter(Thread.CurrentThread, 50);
     try
     {
         aborter.MonBegin();
         Thread.Sleep(10);
         aborter.MonEnd();
     }
     catch (ThreadAbortException ex)
     {
         Thread.ResetAbort();
         Assert.Fail("Thread aborts before timeout");
     }
     try
     {
         Thread.Sleep(100);
         Assert.IsTrue(true, "Thread continues through timeout as expected.");
     }
     catch (ThreadAbortException ex)
     {
         Assert.Fail("Thread aborts after monitoring stopped.");
     }
 }
 /// <summary>
 /// <see cref="IController.MakeShot()"/>
 /// </summary>
 /// <returns><see cref="IController.MakeShot()"/></returns>
 public Shot MakeShot()
 {
     try
     {
         aborter.MonBegin();
         var result = controller.MakeShot();
         aborter.MonEnd();
         return(result);
     }
     catch (ThreadAbortException ex)
     {
         Thread.ResetAbort();
         throw new ControllerTimeoutException("MakeShot", this);
     }
 }