Exemple #1
0
 public void SuggestionsFromStepDefinitions()
 {
     FeatureRunner.Given_the_setting__contains("Libraries", "Common");
     FeatureRunner.Given_the_Feature_contains("using Step Definitions");
     When_I_begin_to_type__on_the_next_line("St");
     Then__should_be_displayed("Step from Step Definitions");
     When_I_begin_to_type__on_the_next_line("Ba");
     Then__should_be_displayed("Base Step");
 }
        public void ReusingStepDefinitions()
        {
            FeatureRunner.Given_the_setting__contains("Libraries", "Common");
            FeatureRunner.Given_the_Feature_contains(
                @"
using Step Definitions

Scenario: Reuse a Step
Step from Step Definitions
");
            FeatureRunner.The_Runner_should_contain(
                @"
public StepDefinitions StepDefinitions = new StepDefinitions();

[TestMethod]
public void ReuseAStep()
{
StepDefinitions.Step_from_Step_Definitions();
}
");
        }