/// <summary> /// This helper method compares the final project contents with the expected /// value. /// </summary> /// <param name="project"></param> /// <param name="newExpectedProjectContents"></param> /// <owner>RGoel</owner> internal static void CompareProjectContents ( Project project, string newExpectedProjectContents ) { // Get the new XML for the project, normalizing the whitespace. string newActualProjectContents = project.Xml; // Replace single-quotes with double-quotes, and normalize whitespace. XmlDocument xmldoc = new XmlDocument(); xmldoc.LoadXml(ObjectModelHelpers.CleanupFileContents(newExpectedProjectContents)); newExpectedProjectContents = ObjectModelHelpers.NormalizeXmlWhitespace(xmldoc); // Compare the actual XML with the expected XML. Console.WriteLine("================================= EXPECTED ==========================================="); Console.WriteLine(newExpectedProjectContents); Console.WriteLine(); Console.WriteLine("================================== ACTUAL ============================================"); Console.WriteLine(newActualProjectContents); Console.WriteLine(); Assertion.AssertEquals("Project XML does not match expected XML. See 'Standard Out' tab for details.", newExpectedProjectContents, newActualProjectContents); }