Пример #1
0
        public void Export(string subpath, string format)
        {
            string path = QA.GetReportPath(subpath);
            string dir  = Path.GetDirectoryName(path);

            Directory.CreateDirectory(dir);
            using (var writer = new StreamWriter(path))
            {
                Export(writer, format);
            }
            if (IsXml(format))
            {
                path = Path.Combine(dir, "html.xslt");
                var rs = typeof(TestReport).GetResourceStream("xslt.html.xslt");
                rs.Save(path);
            }
        }