KernowCode.KTest.Logging.Loggers.SetStartTextsToEmphasise C# (CSharp) Method

SetStartTextsToEmphasise() public method

public SetStartTextsToEmphasise ( ) : void
return void
        public void SetStartTextsToEmphasise(params string[] startTexts)
        {
            foreach (ILogger logger in _loggers)
                if (logger is ILogWithEmphasis)
                    ((ILogWithEmphasis) logger).SetStartTextsToEmphasise(startTexts);
        }

Usage Example

Beispiel #1
0
 /// <summary>
 /// New behaviour factory method
 /// </summary>
 /// <param name="businessValue">text describing the business value</param>
 /// <param name="targetApplicationLayer">project folder name containing target test class implementations</param>
 /// <param name="loggers">instance of loggers</param>
 /// <returns>new behaviour instance</returns>
 public static Behaviour SoThat(string businessValue, string targetApplicationLayer, Loggers loggers)
 {
     string testName = GetTestName();
     loggers.SetStartTextsToEmphasise("I want", "So that", "As", "Given", "When", "Then", "And");
     loggers.SetStartTextsToHaveSectionOpen("As");
     return new Behaviour(targetApplicationLayer, loggers, testName, businessValue);
 }
All Usage Examples Of KernowCode.KTest.Logging.Loggers::SetStartTextsToEmphasise