Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
        private static MethodNameFilter MakeTestFilter(IEnumerable <TestCase> ptestCases)
        {
            var filter = new MethodNameFilter();

            foreach (TestCase testCase in ptestCases)
            {
                filter.Add(testCase.FullyQualifiedName);
            }
            return(filter);
        }