/// <summary> /// Convert the build results into XML. /// </summary> /// <param name="result">The build results.</param> /// <returns>The XML results.</returns> private static string ToXml(IIntegrationResult result) { StringWriter xmlResultString = new StringWriter(); XmlIntegrationResultWriter writer = new XmlIntegrationResultWriter(xmlResultString); writer.Write(result); return xmlResultString.ToString(); }
/// <summary> /// Convert the build results into XML. /// </summary> /// <param name="result">The build results.</param> /// <returns>The XML results.</returns> private static string ToXml(IIntegrationResult result) { StringWriter xmlResultString = new StringWriter(); XmlIntegrationResultWriter writer = new XmlIntegrationResultWriter(xmlResultString); writer.Write(result); return(xmlResultString.ToString()); }
protected void SetUp() { buffer = new StringWriter(); writer = new XmlIntegrationResultWriter(buffer); result = IntegrationResultMother.CreateSuccessful(); }