Esempio n. 1
0
        public void CloseTest()
        {
            TestLifeCycleEventArgs tlce = new TestLifeCycleEventArgs(test);

            try
            {
                test.Closing();
            }
            catch (Exception e)
            {
                tlce.ExceptionInfo = BaseUtils.GetExceptionInfo(e);
                ExceptionInTest(this, tlce);
            }
        }
Esempio n. 2
0
        //public void StartExecute(object testobj)
        public void StartExecute()
        {
            TestLifeCycleEventArgs tlce = new TestLifeCycleEventArgs(test);

            TestStarted(this, tlce);

            try
            {
                test.ExecuteThis();
            }
            catch (Exception e)
            {
                tlce.ExceptionInfo = BaseUtils.GetExceptionInfo(e);
                ExceptionInTest(this, tlce);
            }
            TestFinished(this, tlce);
        }