Ejemplo n.º 1
0
        public virtual ResultHistory GetFullResults()
        {
            var history = new ResultHistory();
            GetAllTests().Each(t =>
            {
                history[t] = t.LastResult;
            });

            return history;
        }
Ejemplo n.º 2
0
        public ResultHistory LoadResults(string directory)
        {
            var history = new ResultHistory();
            var system = new FileSystem();
            system.GetFiles(directory, "stresult").Each(f =>
            {
                var result = system.LoadFromFile<TestResult>(f);
                history[result.Locator] = result;
            });

            return history;
        }
Ejemplo n.º 3
0
        public void SaveResultsToDirectory(ResultHistory theResults, string directory)
        {
            var system = new FileSystem();
            system.ClearFolder(directory);

            theResults.Each((path, result) =>
            {
                result.Locator = path;
                string filename = FileNameFor(path);
                filename = Path.Combine(directory, filename);
                system.PersistToFile(result, filename);
            });
        }
Ejemplo n.º 4
0
        public ResultHistory LoadResults(string directory)
        {
            var history = new ResultHistory();
            var system  = new FileSystem();

            system.GetFiles(directory, "stresult").Each(f =>
            {
                var result = system.LoadFromFile <TestResult>(f);
                history[result.Locator] = result;
            });

            return(history);
        }
Ejemplo n.º 5
0
        public void SaveResultsToDirectory(ResultHistory theResults, string directory)
        {
            var system = new FileSystem();

            system.ClearFolder(directory);

            theResults.Each((path, result) =>
            {
                result.Locator  = path;
                string filename = FileNameFor(path);
                filename        = Path.Combine(directory, filename);
                system.PersistToFile(result, filename);
            });
        }