コード例 #1
0
        public void run_the_last_step_and_it_finishes()
        {
            Start(ExecutionMode.stepthrough);

            // There are a grand total of 7 "steps" to this spec


            Execution.RunNext(); // #1
            Execution.RunNext(); // #2
            Execution.RunNext(); // #3
            Execution.RunNext(); // #4
            Execution.RunNext(); // #5
            Execution.RunNext(); // #6

            // Next execution should trigger this to finish

            Execution.RunNext();

            Finished.Wait(3.Seconds());

            LastProgress.total.ShouldBe(7);

            TheFinalResults.ShouldNotBeNull();
            TheFinalResults.Results.Length.ShouldBe(7);

            Execution.Next.ShouldBeNull();
        }
コード例 #2
0
        public void run_to_end_even_with_breakpoints()
        {
            Specification.SetBreakpoint(new Breakpoint("2", null));

            Executor.RunToEnd();

            LastProgress.total.ShouldBe(7);

            TheFinalResults.ShouldNotBeNull();
            TheFinalResults.Results.Length.ShouldBe(7);

            Executor.Next.ShouldBeNull();
        }
コード例 #3
0
        public void run_to_end_even_with_breakpoints()
        {
            Specification.SetBreakpoint(new Breakpoint("2", null));

            Start(ExecutionMode.stepthrough);

            Execution.RunToEnd();

            Finished.Wait(3.Seconds());

            LastProgress.total.ShouldBe(7);

            TheFinalResults.ShouldNotBeNull();
            TheFinalResults.Results.Length.ShouldBe(7);

            Execution.Next.ShouldBeNull();
        }