public void TestConfigurationMergingDefaultValues ()
{
string projectFile = Util.GetSampleProject ("test-configuration-merging", "TestConfigurationMerging3.csproj");
DotNetProject p = Services.ProjectService.ReadSolutionItem (Util.GetMonitor (), projectFile) as DotNetProject;
Assert.IsNotNull (p);
DotNetProjectConfiguration conf = p.Configurations ["Release|x86"] as DotNetProjectConfiguration;
Assert.IsNotNull (conf);
Assert.IsTrue (conf.DebugMode);
conf.DebugMode = false;
CSharpCompilerParameters cparams = (CSharpCompilerParameters) conf.CompilationParameters;
Assert.IsTrue (cparams.UnsafeCode);
cparams.UnsafeCode = false;
p.Save (Util.GetMonitor ());
Assert.AreEqual (Util.GetXmlFileInfoset (p.FileName + ".saved"), Util.GetXmlFileInfoset (p.FileName));
}