示例#1
0
 public void MM0138()
 {
     MMPTests.RunMMPTest(tmpDir => {
         var rv = TI.TestClassicExecutable(tmpDir, csprojConfig: "<IncludeMonoRuntime>true</IncludeMonoRuntime>", shouldFail: true);
         rv.Messages.AssertError(138, "Building 32-bit apps is not possible when using Xcode 10. Please migrate project to the Unified API.");
         rv.Messages.AssertWarningCount(0);
     });
 }
示例#2
0
        public void Classic_SmokeTest()
        {
            if (ShouldSkipClassicTest)
            {
                return;
            }

            RunMMPTest(tmpDir => {
                TI.TestClassicExecutable(tmpDir);
            });
        }
示例#3
0
        public void Classic_NewRefCount_Warns()
        {
            if (ShouldSkipClassicTest)
            {
                return;
            }

            RunMMPTest(tmpDir => {
                string buildOutput = TI.TestClassicExecutable(tmpDir, csprojConfig: "<IncludeMonoRuntime>true</IncludeMonoRuntime><MonoBundlingExtraArgs>--new-refcount=false</MonoBundlingExtraArgs>").BuildOutput;
                Assert.IsTrue(buildOutput.Contains("Disabling the new refcount logic is deprecated"), "Classic_NewRefCount_Warns did not warn as expected:\n\n", buildOutput);
            });
        }
示例#4
0
        public void Classic_SmokeTest()
        {
            Configuration.AssertXcodeSupports32Bit();

            if (ShouldSkipClassicTest)
            {
                return;
            }

            MMPTests.RunMMPTest(tmpDir => {
                TI.TestClassicExecutable(tmpDir);
            });
        }
示例#5
0
        public void Classic_IntPtr_BindingTest()          // Desk 88943, bug 22729, bug 22714
        {
            if (ShouldSkipClassicTest)
            {
                return;
            }

            const string IntPtrTestCase = @"NSDictionary d = new NSDictionary ();
				NSObject o = d;
				NSObject v = o.ValueForKey ((NSString)""count"");"                ;

            RunMMPTest(tmpDir => {
                TI.TestClassicExecutable(tmpDir, IntPtrTestCase);
            });
        }
示例#6
0
 public void PlatformSDKOnClassic_ShouldNotBeSupported()
 {
     RunMMPTest(tmpDir => {
         TI.TestClassicExecutable(tmpDir, csprojConfig: "<MonoBundlingExtraArgs>--linkplatform</MonoBundlingExtraArgs>\n", includeMonoRuntime: true, shouldFail: true);
     });
 }