public void Setup() { _testObject = new AsyncSetupTearDownFixture(); var method = new MethodWrapper(typeof(AsyncSetupTearDownFixture), Success.ElementAt(0)); _context = new TestExecutionContext { TestObject = _testObject, CurrentResult = new TestCaseResult(new TestMethod(method)) }; }
/// <summary> /// Returns an array of IMethodInfos for methods of this Type /// that match the specified flags. /// </summary> public IMethodInfo[] GetMethods(BindingFlags flags) { var methods = Type.GetMethods(flags); var result = new MethodWrapper[methods.Length]; for (int i = 0; i < methods.Length; i++) { result[i] = new MethodWrapper(Type, methods[i]); } return(result); }