示例#1
0
 public static void PostBeforeFeatureAct(FeatureContext featureContext)
 {
     try
     {
         TestExecutionProvider.PostBeforeFeatureAct(featureContext.FeatureInfo.Title, featureContext.FeatureInfo.Tags.ToList());
     }
     catch (Exception ex)
     {
         TestExecutionProvider.BeforeFeatureFailed(ex);
         throw;
     }
 }
示例#2
0
        public static void PostBeforeFeatureAct(FeatureContext featureContext)
        {
            if (ThrownException?.Value != null)
            {
                ThrownException.Value = null;
            }

            try
            {
                TestExecutionProvider.PostBeforeFeatureAct(featureContext.FeatureInfo.Title, featureContext.FeatureInfo.Tags.ToList());
            }
            catch (Exception ex)
            {
                TestExecutionProvider.BeforeScenarioFailed(ex);
                throw;
            }
        }