public void SetUp()
        {
            var run = new MSpecTestRunner.Run
                      {
                          RunInfos = new[]
                                     {
                                         new TestRunInfo(new Project("Machine.Specifications.Example.Random", null),
                                                         @"C:\Some\Path\Machine.Specifications.Example.Random.dll")
                                     }
                      };

            _parser = new MSpecReportParser("TestResources/MSpec/SingleAssembly.xml", run);
            _results = _parser.Parse();
        }
        IEnumerable <string> XmlReport(MSpecTestRunner.Run run)
        {
            var report = Path.GetTempFileName();

            run.RegisterResultHarvester(() =>
            {
                var parser = new MSpecReportParser(report, run);
                return(parser.Parse());
            });

            run.RegisterCleanup(() =>
            {
                if (_fileSystem.FileExists(report))
                {
                    File.Delete(report);
                }
            });

            yield return(String.Format("--xml \"{0}\"", report));
        }
        IEnumerable<string> XmlReport(MSpecTestRunner.Run run)
        {
            var report = Path.GetTempFileName();

            run.RegisterResultHarvester(()=>
                {
                    var parser = new MSpecReportParser(report, run);
                    return parser.Parse();
                });

            run.RegisterCleanup(() =>
                {
                    if (_fileSystem.FileExists(report))
                    {
                        File.Delete(report);
                    }
                });

            yield return String.Format("--xml \"{0}\"", report);
        }