public SaveResult ( IProject project, System.Test test, StoryTeller.Engine.TestResult result ) : void | ||
project | IProject | |
test | System.Test | |
result | StoryTeller.Engine.TestResult | |
Résultat | void |
public void persist_and_load_and_clear_by_project_smoke_test() { var persistor = new ResultPersistor(); var runner = DataMother.MathProjectRunner(); runner.RunAll(t => t.GetAllTests(), t => Debug.WriteLine("executed " + t.GetPath().Locator)); runner.Hierarchy.GetAllTests().Each(t => { persistor.SaveResult(runner.Project, t, t.LastResult); }); var results = persistor.LoadResults(runner.Project); runner.Hierarchy.GetAllTests().Each(t => { results[t].ShouldNotBeNull(); }); persistor.ClearResults(runner.Project); }