public static string TransformXml(XmlDocument doc)
        {
            StringBuilder sb  = new StringBuilder();
            XmlWriter     xml = XmlWriter.Create(sb);

            XslCompiledTransform xsl = new XslCompiledTransform();

            // Load the XSL from the embedded resources
            xsl.Load(XmlReader.Create(EasTesterUtilities.GetEmbeddedResourceAsStream("EASTester", "Embedded.XmlTransform.xslt")));

            // Write the XSLT transformed document
            xsl.Transform(doc, null, xml);

            return(sb.ToString());
        }
 public static string FriendlyException(string description, string exception)
 {
     return(string.Format(@"{0}<br/><br/><div class=""level1""><code>{1}</code></div>", description, EasTesterUtilities.ExceptionCleanup(exception)));
 }