Exemplo n.º 1
0
        protected void ExecuteTestCase(string name, TestCaseDelegate f)
        {
            Exception exp = null;

            //sub test start
            try
            {
                BeginCase(name);
                Compare(f(), true);
            }
            catch (Exception ex) { exp = ex; }
            finally{ EndCase(exp); exp = null; }
            //sub test end
        }
Exemplo n.º 2
0
		protected void ExecuteTestCase(string name, TestCaseDelegate f)
		{
			Exception exp = null;

			//sub test start
			try
			{
				BeginCase(name);
				Compare( f(), true );
			} 
			catch(Exception ex){exp = ex;}
			finally{EndCase(exp); exp = null;}
			//sub test end
		}