public Test Decorate(Test test, System.Reflection.MemberInfo member)
        {
            if ( test is NUnitTestMethod )
            {
                Attribute attr = Reflect.GetAttribute(
                    member, "NUnit.Framework.Extensions.MaxTimeAttribute", false );
                if ( attr != null )
                {
                    int maxTime = (int)Reflect.GetPropertyValue( attr, "MaxTime", BindingFlags.Public | BindingFlags.Instance );
                    bool expectFailure = (bool)Reflect.GetPropertyValue( attr, "ExpectFailure", BindingFlags.Public | BindingFlags.Instance );
                    test = new MaxTimeTestCase( (NUnitTestMethod)test, maxTime, expectFailure );
                }
            }

            return test;
        }
        public Test Decorate(Test test, System.Reflection.MemberInfo member)
        {
            if (test is NUnitTestMethod)
            {
                Attribute attr = Reflect.GetAttribute(
                    member, "NUnit.Framework.Extensions.MaxTimeAttribute", false);
                if (attr != null)
                {
                    int  maxTime       = (int)Reflect.GetPropertyValue(attr, "MaxTime", BindingFlags.Public | BindingFlags.Instance);
                    bool expectFailure = (bool)Reflect.GetPropertyValue(attr, "ExpectFailure", BindingFlags.Public | BindingFlags.Instance);
                    test = new MaxTimeTestCase((NUnitTestMethod)test, maxTime, expectFailure);
                }
            }

            return(test);
        }