private void ExecuteIgnored(ExampleContainer container, ITestResultListener listener)
        {
            foreach (ExampleContainer exampleContainer in container.ExampleContainers)
            {
                ExecuteIgnored(exampleContainer, listener);
            }

            foreach (Example example in container.Examples)
            {
                listener.Ignored(example);
            }
        }
Пример #2
0
 public override void Execute(ITestResultListener listener)
 {
     try
     {
         if (IsIgnored())
         {
             listener.Ignored(this);
             return;
         }
         _action();
         listener.Success(this);
     }
     catch (PendingException)
     {
         listener.Pending(this);
     }
     catch (Exception ex)
     {
         listener.Failed(this, ex);
     }
 }