public void EnsureDirectories()
        {
            var xmlResultDir = XmlFileNamer.GetResultsDirectory(Script);

            if (!Directory.Exists(xmlResultDir))
            {
                Directory.CreateDirectory(xmlResultDir);
            }

            var htmlResultDir = HtmlFileNamer.GetResultsDirectory(Script);

            if (!Directory.Exists(htmlResultDir))
            {
                Directory.CreateDirectory(htmlResultDir);
            }
        }
        public void GenerateResults()
        {
            var xmlResultDir = XmlFileNamer.GetResultsDirectory(Script)
                               + Path.DirectorySeparatorChar;

            string htmlResultDir = HtmlFileNamer.GetResultsDirectory(Script);

            List <string> arguments = new List <string> ();

            arguments.Add("lib/NUnitResults.1.1/bin/nunit-results.exe");

            arguments.Add("\"" + xmlResultDir + "\"");

            arguments.Add("\"" + htmlResultDir + "\"");

            Script.StartProcess(
                "mono",
                arguments.ToArray()
                );
        }