Beispiel #1
0
        public void SingleLineArg()
        {
            FeatureRunner.Given_the_Feature_is(
                @"
Scenario: Name
Step with ""Arg1"" and ""Arg2""
");
            HighlightFeature.Raconteur_should_highlight_like_a("String", 1, "\"Arg1\"");
            HighlightFeature.Raconteur_should_highlight_like_a("String", 1, "\"Arg2\"");
        }
Beispiel #2
0
        public void HighlightAllTags()
        {
            FeatureRunner.Given_the_Feature_contains(
                @"
@tag @tag
@multiword tag
Scenario: Name
");
            HighlightFeature.Raconteur_should_highlight_like_a("Comment", 1, "@tag @tag");
            HighlightFeature.Raconteur_should_highlight_like_a("Comment", 1, "@multiword tag");
        }
Beispiel #3
0
        public void TableValuesAreDisplayedLikeStrings()
        {
            FeatureRunner.Given_the_Feature_contains(
                @"
Scenario: Name

Step with Table
[ X | Y ]
| a | b |
| c | d |
");
            HighlightFeature.Raconteur_should_highlight_like_a("String", "a");
            HighlightFeature.Raconteur_should_highlight_like_a("String", "d");
            HighlightFeature.Raconteur_should_highlight_like_a("String", "b");
            HighlightFeature.Raconteur_should_highlight_like_a("String", "c");
        }
Beispiel #4
0
        public void Multi_lineComments()
        {
            FeatureRunner.Given_the_Feature_contains(
                @"
Scenario: Name
/*
Scenario: Commented
*/
");
            HighlightFeature.Raconteur_should_highlight_like_a("Comment",
                                                               @"
/*
Scenario: Commented
*/
");
            HighlightFeature.Raconteur_should_highlight(1, "Scenario:", "Keyword");
        }
Beispiel #5
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");
        }
Beispiel #6
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
*/
");
        }