Esempio n. 1
0
        public void BasicTest()
        {
            var mtouchPaths = SetupProjectPaths("MyTabbedApplication");

            Engine.ProjectCollection.SetGlobalProperty("Platform", Platform);

            var include  = Path.Combine(Configuration.RootPath, "tests", "test-libraries", ".libs", "ios-fat", "XTest.framework");
            var metadata = new Dictionary <string, string> {
                { "IsCxx", "False" },
                { "Kind", "Framework" },
            };
            var proj = new MSBuildProject(mtouchPaths, this);

            proj.AddItem("NativeReference", include, metadata);

            MonoTouchProject = mtouchPaths;

            RunTarget(mtouchPaths, "Clean", 0);
            RunTarget(mtouchPaths, "Build", 0);

            Assert.That(Directory.Exists(Path.Combine(AppBundlePath, "Frameworks", "XTest.framework")), "Frameworks/XTest.framework");
            Assert.That(File.Exists(Path.Combine(AppBundlePath, "Frameworks", "XTest.framework", "XTest")), "Frameworks/XTest.framework/XTest");
        }