public void CreateToolsVersionString() { List <Toolset> toolsets = new List <Toolset>(); toolsets.Add(new Toolset("66", "x", new ProjectCollection(), null)); toolsets.Add(new Toolset("44", "y", new ProjectCollection(), null)); string result = InternalUtilities.CreateToolsVersionListString(toolsets); Assert.Equal("\"66\", \"44\"", result); }
protected string GetXmlContents(string xmlText) { XmlDocumentWithLocation xmldoc = new XmlDocumentWithLocation(loadAsReadOnly); xmldoc.LoadXml(xmlText); XmlElementWithLocation rootElement = (XmlElementWithLocation)xmldoc.FirstChild; Console.WriteLine("originalxml = " + xmlText); Console.WriteLine("innerText = " + rootElement.InnerText); Console.WriteLine("innerXml = " + rootElement.InnerXml); Console.WriteLine("-----------"); string xmlContents = InternalUtilities.GetXmlNodeInnerContents(rootElement); return(xmlContents); }