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\""); }
public void SimpleArgs() { FeatureRunner.Given_the_Feature_is( @" Feature: Arg Types Scenario: Use string instead of int Given the zipcode is ""33131"" "); FeatureRunner.The_Runner_should_contain( @" Given_the_zipcode_is(""33131""); "); }
public void DefaultStepDefinition() { FeatureRunner.Given_the_Feature_is( @" Feature: Reusing Steps Scenario: Reuse a Step Step "); FeatureRunner.The_Runner_should_contain( @" [TestMethod] public void ReuseAStep() { Step(); } "); }
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"); }
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"); }
public void TablePassedAsAnArray() { FeatureRunner.Given_the_Feature_is( @" Feature: Table Types Scenario: Scenario Name Given some values: |0|1| |1|1| "); FeatureRunner.The_Runner_should_contain( @" [TestMethod] public void ScenarioName() { Given_some_values_ ( new[] {""0"", ""1""}, new[] {""1"", ""1""} ); } "); }
public void MbUnitRunner() { Using("MbUnit"); FeatureRunner.Given_the_Feature_is( @" Feature: Feature Scenario: Scenario "); FeatureRunner.The_Runner_should_be( @" using MbUnit.Framework; namespace Features { [TestFixture] public partial class Feature { [Test] public void Scenario() { } } } "); }
public void GenerateRunnerClass() { FeatureRunner.Given_the_Feature_is( @" Feature: Feature Name "); FeatureRunner.The_Runner_should_be( @" using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Features { [TestClass] public partial class FeatureName { } } "); }
public void QueVivaEspaña_YOlé_() { Select_language("es"); FeatureRunner.Given_the_Feature_is( @" Funcionalidad: Multilingue Escenario: En Español "); FeatureRunner.The_Runner_should_contain( @" [TestClass] public partial class Multilingue { [TestMethod] public void EnEspañol() { } } "); }
public void ScenariosWithTags() { FeatureRunner.Given_the_Feature_is( @" Feature: Name Scenario: First Steps @tag Scenario: Second Steps "); Raconteur_should_allow_to_collapse( @" Scenario: First Steps "); Raconteur_should_allow_to_collapse( @" Scenario: Second Steps "); }
public void SuggestionsFromBaseClass() { FeatureRunner.Given_the_Feature_is("Feature: Intellisense"); When_I_begin_to_type__on_the_next_line("In"); Then__should_be_displayed("Inherited Step"); }
public void UnparseableFeature() { FeatureRunner.Given_the_Feature_is("unparseable feature"); FeatureRunner.The_Runner_should_be("Missing Feature declaration"); }
void Given_the_Feature_is_Empty() { FeatureRunner.Given_the_Feature_is(string.Empty); }