Ejemplo n.º 1
0
        /// <exception cref="System.Exception"></exception>
        private void CheckConcurrencyMethod(AbstractDb4oTestCase toTest, string testMethodName
                                            )
        {
            MethodInfo checkMethod = CheckMethodFor(toTest.GetType(), testMethodName);

            if (null == checkMethod)
            {
                return;
            }
            // pass ExtObjectContainer as a param to check method
            IExtObjectContainer oc = Fixture().Db();

            try
            {
                checkMethod.Invoke(toTest, new object[] { oc });
            }
            finally
            {
                oc.Close();
            }
        }
Ejemplo n.º 2
0
 /// <exception cref="System.Exception"></exception>
 private void CheckConcurrencyMethod(AbstractDb4oTestCase toTest, string testMethodName
     )
 {
     var checkMethod = CheckMethodFor(toTest.GetType(), testMethodName);
     if (null == checkMethod)
     {
         return;
     }
     // pass ExtObjectContainer as a param to check method
     var oc = Fixture().Db();
     try
     {
         checkMethod.Invoke(toTest, new object[] {oc});
     }
     finally
     {
         oc.Close();
     }
 }