Пример #1
0
        public void SetUp()
        {
            theStatus = new TestStatusMessage();
            theStatusIs(theStatus);

            theBar = new TestStatusBar(theStatus);
        }
        void ITestObserver.FinishTest(Test test)
        {
            lock (_locker)
            {
                _lastStatus = new TestStatusMessage
                {
                    Status   = test.GetStatus(),
                    TestPath = test.LocatorPath()
                };

                _progression = null;
            }

            Publish();
        }
Пример #3
0
 protected override void theStatusIs(TestStatusMessage message)
 {
     message.Counts = new Counts
     {
         Wrongs = 5
     };
     message.CompletedSteps = 5;
     message.TotalSteps = 15;
     message.TestPath = "the path of something";
     message.CurrentActivity = "the current activity";
     message.IsRunning = true;
 }
Пример #4
0
 protected abstract void theStatusIs(TestStatusMessage message);
Пример #5
0
 protected override void theStatusIs(TestStatusMessage message)
 {
     message.IsRunning = false;
     message.TestPath = "Suite/Child/Test1";
     message.Status = "the last status";
 }
Пример #6
0
 protected override void theStatusIs(TestStatusMessage message)
 {
     message.IsRunning = false;
     message.TestPath = null;
 }
Пример #7
0
        protected override void theStatusIs(TestStatusMessage message)
        {
            message.Counts = new Counts
            {
                Rights = 5
            };
            message.Counts.WasSuccessful().ShouldBeTrue();

            message.CompletedSteps = 5;
            message.TotalSteps = 15;
            message.TestPath = "the path of something";
            message.CurrentActivity = "the current activity";
            message.IsRunning = true;
        }
        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();
        }