public void DetectAppManifest_ExecutableProject_NoPList() { MonoTouchProjectInstance.RemoveItems("None"); RunTarget(MonoTouchProject, TargetName.DetectAppManifest, expectedErrorCount: 1); Assert.That(MonoTouchProjectInstance.GetPropertyValue("_AppManifest"), Is.Null.Or.Empty, "#1"); }
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"); }
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"); }