예제 #1
0
        public void FeatureAndScenarios()
        {
            FeatureRunner.Given_the_Feature_is(
                @"
Feature: Name
Scenario: First
Scenario: Second
");
            HighlightFeature.Raconteur_should_highlight(1, "Feature:", "Keyword");
            HighlightFeature.Raconteur_should_highlight(2, "Scenario:", "Keyword");
        }
예제 #2
0
        public void SingleLineComments()
        {
            FeatureRunner.Given_the_Feature_contains(
                @"
Scenario: Name
// Comment
Step
// Scenario:
");
            HighlightFeature.Raconteur_should_highlight(1, "// Comment", "Comment");
            HighlightFeature.Raconteur_should_highlight(1, "// Scenario:", "Comment");
            HighlightFeature.Raconteur_should_highlight(1, "Scenario:", "Keyword");
        }