public void SetUp()
        {
            test = new Test("some test",
                            x => { section = x.Section("Math").WithStep("Add").WithStep("Subtract").WithStep("Minus"); });

            progression = new TestProgression(test, new Counts());

            progression.Start(section);
            status = progression.BuildStatus();
        }
        public TestStatusMessage GetStatus()
        {
            lock (_locker)
            {
                if (_progression == null)
                {
                    return(_lastStatus ?? new TestStatusMessage());
                }

                return(_progression.BuildStatus());
            }
        }
        public void SetUp()
        {
            test = new Test("some test",
                            x => { section = x.Section("Math").WithStep("Add").WithStep("Subtract").WithStep("Minus"); });

            counts      = new Counts();
            progression = new TestProgression(test, counts);

            progression.Start(section);
            progression.Start(section.Parts[0]);

            counts.IncrementRights();
            progression.IncrementProgress(section.Parts[0]);
            counts.IncrementWrongs();

            status = progression.BuildStatus();
        }
        public void SetUp()
        {
            test = new Test("some test",
                            x => { section = x.Section("Math").WithStep("Add").WithStep("Subtract").WithStep("Minus"); });

            counts = new Counts();
            progression = new TestProgression(test, counts);

            progression.Start(section);
            progression.Start(section.Parts[0]);

            counts.IncrementRights();
            progression.IncrementProgress(section.Parts[0]);
            counts.IncrementWrongs();

            status = progression.BuildStatus();
        }
        public void SetUp()
        {
            test = new Test("some test",
                            x => { section = x.Section("Math").WithStep("Add").WithStep("Subtract").WithStep("Minus"); });

            progression = new TestProgression(test, new Counts());

            progression.Start(section);
            status = progression.BuildStatus();
        }
 public void the_initial_status_should_be_the_test()
 {
     theProgression.BuildStatus().CurrentActivity.ShouldEqual("Test:  " + test.LocatorPath());
 }