public void SetUp()
        {
            children = new[]
            {
                new Step("Add1"),
                new Step("Add2"),
                new Step("Add3"),
            };

            grandchildren = new[]
            {
                new Step("Add4-1"),
            };

            children2 = new[]
            {
                new Step("Add4").WithChildren("grandkids", grandchildren),
            };

            test      = new Test("name");
            _section1 = test.Section("Math").Configure(s =>
            {
                _step1 = s.AddStep("Add").WithChildren("children", children).WithChildren("others", children2);
                _step2 = s.AddStep("Subtract");
                _step3 = s.AddStep("Multiply");
            });

            _section2 = test.Section("Arithmetic").Configure(s => { _step4 = s.AddStep("Divide"); });

            theProgression = new TestProgression(test, new Counts());
        }
        void ITestObserver.StartTest(Test test, Counts counts)
        {
            lock (_locker)
            {
                _progression = new TestProgression(test, counts);
            }

            Publish();
        }
        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();
        }
        void ITestObserver.FinishTest(Test test)
        {
            lock (_locker)
            {
                _lastStatus = new TestStatusMessage
                {
                    Status   = test.GetStatus(),
                    TestPath = test.LocatorPath()
                };

                _progression = null;
            }

            Publish();
        }
        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()
 {
     testProgression = new TestProgression();
     testProgression.AddToken(new Token
     {
         Part = new Step("a")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("b")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("c"),
         Description = "Math/c"
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("d")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("e")
     });
     testProgression.AddToken(new Token
     {
         Part = new Section("e")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("f")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("g")
     });
 }
 public void SetUp()
 {
     testProgression = new TestProgression();
     testProgression.AddToken(new Token
     {
         Part = new Step("a")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("b")
     });
     testProgression.AddToken(new Token
     {
         Part        = new Step("c"),
         Description = "Math/c"
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("d")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("e")
     });
     testProgression.AddToken(new Token
     {
         Part = new Section("e")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("f")
     });
     testProgression.AddToken(new Token
     {
         Part = new Step("g")
     });
 }
        public void SetUp()
        {
            children = new[]
            {
                new Step("Add1"),
                new Step("Add2"),
                new Step("Add3"),
            };

            grandchildren = new[]
            {
                new Step("Add4-1"),
            };

            children2 = new[]
            {
                new Step("Add4").WithChildren("grandkids", grandchildren),
            };

            test = new Test("name");
            _section1 = test.Section("Math").Configure(s =>
            {
                _step1 = s.AddStep("Add").WithChildren("children", children).WithChildren("others", children2);
                _step2 = s.AddStep("Subtract");
                _step3 = s.AddStep("Multiply");
            });

            _section2 = test.Section("Arithmetic").Configure(s => { _step4 = s.AddStep("Divide"); });

            theProgression = new TestProgression(test, new Counts());
        }
        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();
        }
        void ITestObserver.FinishTest(Test test)
        {
            lock (_locker)
            {
                _lastStatus = new TestStatusMessage
                {
                    Status = test.GetStatus(),
                    TestPath = test.LocatorPath()
                };

                _progression = null;
            }

            Publish();
        }
        void ITestObserver.StartTest(Test test, Counts counts)
        {
            lock (_locker)
            {
                _progression = new TestProgression(test, counts);
            }

            Publish();
        }