예제 #1
0
            public void FailingThenDoesNotStopThePipelineWithFluentAPI()
            {
                var testRun = new ScenarioWithFailingThen()
                              .Given(x => x.PassingGiven())
                              .When(x => x.PassingWhen())
                              .Then(x => x.FailingThen())
                              .And(x => x.PassingAndThen())
                              .LazyBDDfy();

                Verify(testRun);
            }
예제 #2
0
         public void FailingThenStopsThePipelineWithReflectiveAPI()
         {
             Configurator.Processors.TestRunner.StopExecutionOnFailingThen = true;
 
             try
             {
                 var testRun = new ScenarioWithFailingThen().LazyBDDfy();
                 Verify(testRun);
             }
             finally
             {
                 Configurator.Processors.TestRunner.StopExecutionOnFailingThen = false;
             }
         }
예제 #3
0
            public void FailingThenStopsThePipelineWithReflectiveAPI()
            {
                Configurator.Processors.TestRunner.StopExecutionOnFailingThen = true;

                try
                {
                    var testRun = new ScenarioWithFailingThen().LazyBDDfy();
                    Verify(testRun);
                }
                finally
                {
                    Configurator.Processors.TestRunner.StopExecutionOnFailingThen = false;
                }
            }
예제 #4
0
            public void FailingThenStopsThePipelineWithFluentAPI()
            {
                Configurator.Processors.TestRunner.StopExecutionOnFailingThen = true;
    
                try
                {
                    var testRun = new ScenarioWithFailingThen()
                        .Given(x => x.PassingGiven())
                        .When(x => x.PassingWhen())
                        .Then(x => x.FailingThen())
                        .And(x => x.PassingAndThen())
                        .LazyBDDfy();

                    Verify(testRun);
                }
                finally
                {
                    Configurator.Processors.TestRunner.StopExecutionOnFailingThen = false;
                }
            }
예제 #5
0
            public void FailingThenStopsThePipelineWithFluentAPI()
            {
                Configurator.Processors.TestRunner.StopExecutionOnFailingThen = true;

                try
                {
                    var testRun = new ScenarioWithFailingThen()
                                  .Given(x => x.PassingGiven())
                                  .When(x => x.PassingWhen())
                                  .Then(x => x.FailingThen())
                                  .And(x => x.PassingAndThen())
                                  .LazyBDDfy();

                    Verify(testRun);
                }
                finally
                {
                    Configurator.Processors.TestRunner.StopExecutionOnFailingThen = false;
                }
            }
예제 #6
0
 public void FailingThenDoesNotStopThePipelineWithReflectiveAPI()
 {
     var testRun = new ScenarioWithFailingThen().LazyBDDfy();
     Verify(testRun);
 }
예제 #7
0
            public void FailingThenDoesNotStopThePipelineWithFluentAPI()
            {
                var testRun = new ScenarioWithFailingThen()
                    .Given(x => x.PassingGiven())
                    .When(x => x.PassingWhen())
                    .Then(x => x.FailingThen())
                    .And(x => x.PassingAndThen())
                    .LazyBDDfy();

                Verify(testRun);
            }
예제 #8
0
            public void FailingThenDoesNotStopThePipelineWithReflectiveAPI()
            {
                var testRun = new ScenarioWithFailingThen().LazyBDDfy();

                Verify(testRun);
            }