Esempio n. 1
0
 public void It_should_generate_the_correct_report()
 {
     ScenarioReport.Should().Be(
         string.Format(
             "Scenario Outline: eating{0}{1}Given there are 12 cucumbers{0}{1}When i eat 5 cucumbers{0}{1}Then i should have 7 cucumbers",
             Settings.GetSeperator(SeperatorType.Line),
             Settings.GetSeperator(SeperatorType.Indent)));
 }
Esempio n. 2
0
 public void It_should_generate_the_correct_report()
 {
     ScenarioReport.Should().Be(
         string.Format("{0} an assumption{3}{1} performing the deed{3}{2} it should do the right thing",
                       Settings.GetStep(StepType.Given),
                       Settings.GetStep(StepType.When),
                       Settings.GetStep(StepType.Then),
                       Settings.GetSeperator(SeperatorType.Line)));
 }
Esempio n. 3
0
 public void It_should_generate_the_proper_report()
 {
     ScenarioReport.Should().Be(string.Format(
                                    "{5}Feature summary{3}{4}Detail 1{3}{4}Detail 2{3}{3}{4}{0} precondition{3}{4}{1} doing the deed{3}{4}{2} it should do the right thing",
                                    Settings.GetStep(StepType.Given),
                                    Settings.GetStep(StepType.When),
                                    Settings.GetStep(StepType.Then),
                                    Settings.GetSeperator(SeperatorType.Line),
                                    Settings.GetSeperator(SeperatorType.Indent),
                                    Settings.GetToken(TokenType.Feature)));
 }
Esempio n. 4
0
 public void It_should_generate_the_correct_report()
 {
     ScenarioReport.Should().Be(
         string.Format(
             "{0} one thing{3}{4}{5} another thing{3}{4}{5} yet another thing{3}{1} i open my eyes{3}{2} i see something{3}{4}{6} i dont see something else",
             Settings.GetStep(StepType.Given),
             Settings.GetStep(StepType.When),
             Settings.GetStep(StepType.Then),
             Settings.GetSeperator(SeperatorType.Line),
             Settings.GetSeperator(SeperatorType.Indent),
             Settings.GetToken(TokenType.And),
             Settings.GetToken(TokenType.But)));
 }
 public void It_should_generate_a_brief_report()
 {
     ScenarioReport.Should().Be(
         "Feature: TestSupport\r\n\r\nScenario: When generating report for default step names scenario\r\n  When generating report for default step names scenario");
 }
 public void It_should_use_the_class_name()
 {
     ScenarioReport.Should().Be(
         "Feature: TestSupport\r\n\r\nScenario: Fixture uses implicit scenario description\r\n  When fixture uses implicit scenario description\r\n  Then it will use the class name");
 }
Esempio n. 7
0
 public void But_not_for_given()
 {
     ScenarioReport.Should().NotContain(Settings.GetStep(StepType.Given));
 }
Esempio n. 8
0
 public void And_when()
 {
     ScenarioReport.Should().Contain(Settings.GetStep(StepType.When));
 }
Esempio n. 9
0
 public void The_report_should_have_output_for_then()
 {
     ScenarioReport.Should().Contain(Settings.GetStep(StepType.Then));
 }
Esempio n. 10
0
 public void It_should_use_the_class_name()
 {
     ScenarioReport.Should().StartWith(string.Format("{0}Fixture uses implicit scenario description",
                                                     GherkinTestFrameworkSettingsFacade.GetInstance().GetToken(TokenType.Scenario)));
 }
Esempio n. 11
0
 public void It_should_generate_the_correct_report()
 {
     ScenarioReport.Should().Be(
         "Feature: TestSupport\r\n\r\nScenario: When generating report for underscore step names scenario\r\n  Given an assumption\r\n  When performing the deed\r\n  Then it should do the right thing");
 }
Esempio n. 12
0
 public void It_should_generate_the_correct_report()
 {
     ScenarioReport.Should().Be(
         "Feature: TestSupport\r\n\r\nScenario: Pascal test\r\n  Given an assumption\r\n  When performing the deed\r\n  Then it should do the right thing");
 }
 public void It_should_not_output_anything()
 {
     ScenarioReport.Should().BeEmpty();
 }
 public void It_should_generate_the_correct_report()
 {
     ScenarioReport.Should().Be(
         "Feature: TestSupport\r\n\r\nScenario: When generating report for default step names and custom steps scenario\r\n  Given one thing\r\n    And another thing\r\n    And yet another thing\r\n  When i open my eyes\r\n  Then i see something\r\n    But i dont see something else");
 }
Esempio n. 15
0
 public void It_should_generate_the_correct_report()
 {
     ScenarioReport.Should().Be(
         "Feature: TestSupport\r\n\r\nScenario Outline: Eating cucumbers\r\n  Given there are 12 cucumbers\r\n  When i eat 5 cucumbers\r\n  Then i should have 7 cucumbers");
 }
 public void It_should_have_tag_attributes()
 {
     ScenarioReport.Should().Contain("@Foo").And.Contain("@Bar");
 }
 public void It_should_generate_the_proper_report()
 {
     ScenarioReport.Should().Be(
         "Feature: TestSupport\r\n\r\nScenario: Test scenario\r\n  Given precondition\r\n  When doing the deed\r\n  Then it should do the right thing");
 }
Esempio n. 18
0
 public void It_should_generate_a_brief_report()
 {
     ScenarioReport.Should().Be(string.Format(
                                    "{0} generating report for default step names scenario", Settings.GetStep(StepType.When)));
 }