Пример #1
0
 public void GetScenarioTextFromBaseClassObjectInContext()
 {
     Assert.That(BDTestContext.TestBase.GetScenarioText(),
                 Is.EqualTo("I can get scenario text from the BDTestContext"));
     Assert.That(BDTestContext.GetScenarioText(),
                 Is.EqualTo("I can get scenario text from the BDTestContext"));
 }
Пример #2
0
 public void GetStoryTextFromBaseClassObjectInContext()
 {
     Assert.That(BDTestContext.TestBase.GetStoryText(),
                 Is.EqualTo(
                     $"As a BDTest developer{Environment.NewLine}I want to make sure that test contexts are different for each test{Environment.NewLine}So that tests don't share state{Environment.NewLine}"));
     Assert.That(BDTestContext.GetStoryText(),
                 Is.EqualTo(
                     $"As a BDTest developer{Environment.NewLine}I want to make sure that test contexts are different for each test{Environment.NewLine}So that tests don't share state{Environment.NewLine}"));
 }