public void WriteLine(string text, GherkinSpecContext specContext) { _buffer.Append(text); _outputHelper.WriteLine(_buffer.ToString()); _buffer.Clear(); }
protected GherkinSpecMsTest() { if(!_isStaticInitialized) { Ctx = new GherkinSpecContext(GetType()); _isStaticInitialized = true; } }
public void TestInitialize() { _specContext = CreateSpecContext(); try { // forced so feature related state is processed per test _specContext.InitFeature(this); Background(); OnInitScenario(); _specContext.InitScenario(TestContext.TestName); } catch (Exception) { TestCleanup(); throw; } }
public void Write(string keyword, string text, GherkinSpecContext specContext) { _buffer.Append(keyword); _buffer.Append(text); }