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(); progression.Start(section.Parts[1]); counts.IncrementWrongs(); progression.IncrementProgress(section.Parts[1]); 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 virtual void FinishPart(ITestPart part) { _progression.IncrementProgress(part); Publish(); }