예제 #1
0
        public void WriteLine(string text, GherkinSpecContext specContext)
        {
            _buffer.Append(text);

              _outputHelper.WriteLine(_buffer.ToString());

              _buffer.Clear();
        }
예제 #2
0
    protected GherkinSpecMsTest()
    {
      if(!_isStaticInitialized)
      {
        Ctx = new GherkinSpecContext(GetType());

        _isStaticInitialized = true;
      }
    }   
예제 #3
0
    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;
      }
    }
예제 #4
0
 public void Write(string keyword, string text, GherkinSpecContext specContext)
 {
     _buffer.Append(keyword);
       _buffer.Append(text);
 }