예제 #1
0
        public void FeatureAndScenarios()
        {
            FeatureRunner.Given_the_Feature_is(
                @"
Feature: Name
using Step Definitions
Scenario: First
using after Scenario
");
            HighlightFeature.Raconteur_should_highlight_like_a("Comment", "using Step Definitions");
            HighlightFeature.Raconteur_should_not_highlight("using after Scenario");
        }
예제 #2
0
        public void TableHeadersAreNotHighlighted()
        {
            FeatureRunner.Given_the_Feature_contains(
                @"
Scenario: Name

Step with Table
[ X | Y ]
| a | b |

Scenario Outline: Name

Step with X

Examples:
[ X ]
| a |
");
            HighlightFeature.Raconteur_should_not_highlight("X");
            HighlightFeature.Raconteur_should_not_highlight("Y");
        }
예제 #3
0
        public void Keywords_Comments_TablesInMultilineArgDisplayLikeArg()
        {
            FeatureRunner.Given_the_Feature_contains(
                @"
""
Scenario: Name
// Single Line Comment
/*
MultiLine Comment
*/
[ Table			  ]
|  value in table |
""
");
            HighlightFeature.Raconteur_should_highlight_like_a("String",
                                                               @"
""
Scenario: Name
// Single Line Comment
/*
MultiLine Comment
*/
[ Table			  ]
|  value in table |
""
");
            HighlightFeature.Raconteur_should_not_highlight("Scenario:");
            HighlightFeature.Raconteur_should_not_highlight("// Single Line Comment");
            HighlightFeature.Raconteur_should_not_highlight("value in table");
            HighlightFeature.Raconteur_should_not_highlight(
                @"
/*
MultiLine Comment
*/
");
        }