Example #1
0
        public void UnifiedWithoutLinking_ShouldHaveManyFrameworkClangLines()
        {
            MMPTests.RunMMPTest(tmpDir => {
                // By default we -framework in all frameworks we bind.
                string [] clangParts = MMPTests.GetUnifiedProjectClangInvocation(tmpDir);
                AssertUnlinkedFrameworkStatus(clangParts);

                // Even with static registrar
                clangParts = MMPTests.GetUnifiedProjectClangInvocation(tmpDir, StaticRegistrarConfig);
                AssertUnlinkedFrameworkStatus(clangParts);
            });
        }
Example #2
0
        public void UnifiedWithLinking_ShouldHaveFewFrameworkClangLines()
        {
            MMPTests.RunMMPTest(tmpDir => {
                // When we link, we should throw away pretty much everything that isn't AppKit.
                string[] clangParts = MMPTests.GetUnifiedProjectClangInvocation(tmpDir, LinkerEnabledConfig);
                AssertLinkedFrameworkStatus(clangParts);

                // Even with static registrar
                clangParts = MMPTests.GetUnifiedProjectClangInvocation(tmpDir, LinkerEnabledConfig + StaticRegistrarConfig);
                AssertLinkedFrameworkStatus(clangParts);
            });
        }