Example #1
0
        public void MainThreadDeallocationTest()
        {
            ObjCBlockTester.CallAssertMainThreadBlockRelease((callback) => {
                callback(42);
            });

            using (var main_thread_tester = new MainThreadTest()) {
                main_thread_tester.CallAssertMainThreadBlockReleaseCallback();
            }
        }
Example #2
0
        public void MainThreadDeallocationTest()
        {
#if OPTIMIZEALL
            if (!TestRuntime.IsLinkAll)
            {
                Assert.Ignore("This test must be processed by the linker if all optimizations are turned on.");
            }
#endif

            ObjCBlockTester.CallAssertMainThreadBlockRelease((callback) => {
                callback(42);
            });

            using (var main_thread_tester = new MainThreadTest()) {
                main_thread_tester.CallAssertMainThreadBlockReleaseCallback();
            }
        }