private void LogScenario(TestingEvent testingEvent)
        {
            var scenarioName           = testingEvent.TestSketch.TestMethod.Name;
            var scenarioNameAsSentence = PascalCaseToSentenceConverter.Convert(scenarioName);
            var saidConvertedSentence  = SaidVariableToBracketedVariableConverter.Convert(scenarioNameAsSentence);

            Log(_indendation1 + "Scenario :" + saidConvertedSentence);
        }
Esempio n. 2
0
        public ProcessedEvent ProcessEvent(TestingEvent testingEvent)
        {
            var processedEvent                = new MultipleLinesContainingProcessedEvent();
            var methodName                    = testingEvent.MethodName;
            var methodNameAsSentence          = PascalCaseToSentenceConverter.Convert(methodName);
            var saidVariableConvertedSentence = SaidVariableToBracketedVariableConverter.Convert(methodNameAsSentence);

            if (testingEvent.EventSubType == EventSubType.Started)
            {
                processedEvent.Lines.Add(saidVariableConvertedSentence);
            }
            return(processedEvent);
        }
 public void Sink(TestingEvent testingEvent, string uniqueTestCaseIdentifier, int eventCount)
 {
     if (IsFirstEvent(eventCount))
     {
         LogFeature(testingEvent);
         LogScenario(testingEvent);
     }
     if (testingEvent.EventSubType == EventSubType.Started)
     {
         if (testingEvent.EventType != EventType.Scenario)
         {
             var methodName            = testingEvent.MethodName;
             var methodNameAsSentence  = PascalCaseToSentenceConverter.Convert(methodName);
             var saidConvertedSentence = SaidVariableToBracketedVariableConverter.Convert(methodNameAsSentence);
             var eventString           = testingEvent.EventType.ToString();
             Log(_indendation2 + "(" + eventString + ") " + saidConvertedSentence);
         }
     }
 }