public void CreateConsoleProject ()
{
Solution sol = TestProjectsChecks.CreateConsoleSolution ("console-project-msbuild");
sol.ConvertToFormat (Util.FileFormatMSBuild10, true);
sol.Save (Util.GetMonitor ());
// msbuild format
string solXml = File.ReadAllText (sol.FileName);
string projectXml = Util.GetXmlFileInfoset (((SolutionEntityItem)sol.Items [0]).FileName);
// Make sure we compare using the same guid
Project p = sol.Items [0] as Project;
string guid = p.ItemId;
solXml = solXml.Replace (guid, "{969F05E2-0E79-4C5B-982C-8F3DD4D46311}");
projectXml = projectXml.Replace (guid, "{969F05E2-0E79-4C5B-982C-8F3DD4D46311}");
string solFile = Util.GetSampleProjectPath ("generated-console-project", "TestSolution.sln");
string projectFile = Util.GetSampleProjectPath ("generated-console-project", "TestProject.csproj");
Assert.AreEqual (Util.ToWindowsEndings (File.ReadAllText (solFile)), solXml);
Assert.AreEqual (Util.ToWindowsEndings (Util.GetXmlFileInfoset (projectFile)), projectXml);
}