Example #1
0
        public void DetectAppManifest_ExecutableProject_TwoPLists()
        {
            MonoTouchProjectInstance.RemoveItems("None");

            MonoTouchProjectInstance.AddItem("None", "Fake/Info.plist");
            MonoTouchProjectInstance.AddItem("None", "Info.plist");

            RunTarget(MonoTouchProject, TargetName.DetectAppManifest);
            Assert.AreEqual("Info.plist", MonoTouchProjectInstance.GetPropertyValue("_AppManifest"), "#1");
        }
Example #2
0
        public void DetectAppManifest_ExecutableProject_LogicalNamePList()
        {
            string logicalPlist = CreateTempFile("Logical.plist");

            MonoTouchProjectInstance.RemoveItems("None");

            MonoTouchProjectInstance.AddItem("None", logicalPlist, new Dictionary <string, string> {
                { "LogicalName", "Info.plist" }
            });

            RunTarget(MonoTouchProject, TargetName.DetectAppManifest);
            Assert.AreEqual(logicalPlist, MonoTouchProjectInstance.GetPropertyValue("_AppManifest"), "#1");
        }
        public void DetectAppManifest_ExecutableProject_LogicalNamePList()
        {
            string logicalPlist = CreateTempFile(Path.Combine(TempDir, "Logical.plist"));

            RemoveItemsByName(MonoTouchProject, "None");
            MonoTouchProjectInstance = MonoTouchProject.CreateProjectInstance();

            var item = MonoTouchProjectInstance.AddItem("None", logicalPlist);

            item.SetMetadata("LogicalName", "Info.plist");

            RunTargetOnInstance(MonoTouchProjectInstance, TargetName.DetectAppManifest);
            Assert.AreEqual(logicalPlist, MonoTouchProjectInstance.GetPropertyValue("_AppManifest"), "#1");
        }