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

SetStartTextsToHaveSectionOpen() public method

public SetStartTextsToHaveSectionOpen ( ) : void
return void
        public void SetStartTextsToHaveSectionOpen(params string[] texts)
        {
            foreach (ILogger logger in _loggers)
                if (logger is ILogWithExpandableSections)
                    ((ILogWithExpandableSections)logger).SetStartTextsToHaveSectionOpen(texts);
        }

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::SetStartTextsToHaveSectionOpen