private void HandleSourceMethodInvoked(object sender, MethodInvokedEventArgs args) { if ((string.IsNullOrEmpty(MethodNameFilter) || MethodNameFilter.Equals(args.MethodName)) && (InvocationContextFilter == null || InvocationContextFilter.Equals(args.InvocationContext.Identifier))) { Trip(args.InvocationContext == null ? null : args.InvocationContext.Data as IExecutionContext); } }
private static MethodNameFilter MakeTestFilter(IEnumerable <TestCase> ptestCases) { var filter = new MethodNameFilter(); foreach (TestCase testCase in ptestCases) { filter.Add(testCase.FullyQualifiedName); } return(filter); }