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(); }
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; }
protected abstract void theStatusIs(TestStatusMessage message);
protected override void theStatusIs(TestStatusMessage message) { message.IsRunning = false; message.TestPath = "Suite/Child/Test1"; message.Status = "the last status"; }
protected override void theStatusIs(TestStatusMessage message) { message.IsRunning = false; message.TestPath = null; }
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(); }