Exemplo n.º 1
0
        public void ChangingBuildConfigurationWorks()
        {
            var xcscheme = new XcScheme();

            xcscheme.ReadFromString(ReadSourceFile("base1.xcscheme"));
            Assert.AreEqual("Debug", xcscheme.GetBuildConfiguration());
            xcscheme.SetBuildConfiguration("MyConfiguration");
            Assert.AreEqual("MyConfiguration", xcscheme.GetBuildConfiguration());
        }
Exemplo n.º 2
0
 public void OutputWorks()
 {
     TestXmlUpdate("base1.xcscheme", "test1.xcscheme", text =>
     {
         var xcscheme = new XcScheme();
         xcscheme.ReadFromString(text);
         xcscheme.SetBuildConfiguration("ReleaseForRunning");
         return(xcscheme.WriteToString());
     });
 }
        private string SetupXcScheme(NPath xcSchemePath, bool release)
        {
            var text     = xcSchemePath.ReadAllText();
            var xcscheme = new XcScheme();

            xcscheme.ReadFromString(text);
            string buildConfigName = release ? "ReleaseForRunning" : "Debug";

            xcscheme.SetBuildConfiguration(buildConfigName);
            return(xcscheme.WriteToString());
        }