xamarin-macios/tests/introspection
Sebastien Pouliot 05eb96d0a7 Merge branch 'xcode9' into xcode9-master-merge 2017-09-15 11:05:30 -04:00
..
Mac [tests] Add all test project variations to tests-mac.sln (#2579) 2017-09-11 23:10:45 +02:00
iOS [scenekit] Audit (xtro) fixes (#2648) 2017-09-12 15:14:49 -04:00
ApiBaseTest.cs [Xcode9] Add IOSurface bindings (#2363) 2017-09-05 08:57:58 -04:00
ApiCMAttachmentTest.cs [tvos][videotoolbox] Enable VideoToolbox.framework on tvOS (#1626) 2017-03-28 09:22:10 -05:00
ApiClassPtrTest.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
ApiCoreImageFiltersTest.cs [coreimage] Skip not yet bound filters added in Xcode9 (#2698) 2017-09-14 12:33:31 -04:00
ApiCtorInitTest.cs [passkit] Update to beta 5 (#2481) 2017-08-12 13:09:46 -04:00
ApiFieldTest.cs Merge branch 'xcode9' into xcode9-master-merge 2017-09-15 11:05:30 -04:00
ApiPInvokeTest.cs [tests][intro] Add validation for methods decorated with [MonoPInvokeCallback] (#1751) 2017-03-04 19:40:35 -05:00
ApiProtocolTest.cs [videosubscriberaccount] Update to beta 6 (#2533) 2017-08-23 08:29:10 -04:00
ApiSelectorTest.cs [Xcode 9] Update Metal for GM (#2689) 2017-09-14 21:42:40 -04:00
ApiSignatureTest.cs [introspection] Don't check native signatures on obsolete members, and ignore the right simd matrix types. 2017-09-01 11:15:44 +02:00
ApiStructTest.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
ApiTypoTest.cs [Xcode 9] Update Metal for GM (#2689) 2017-09-14 21:42:40 -04:00
ApiWeakPropertyTest.cs [generator] Don't output ArgumentSemantic when they are not required (#1278) 2016-12-01 17:25:30 -05:00
CoreSelectorTest.cs [macos] Fix introspection tests (typo + NSUrlSession* test sharing) 2016-09-06 13:32:51 -04:00
EnvironmentVariable.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
README.md [tests] Move linker tests from maccore (#69) 2016-05-20 14:07:34 -04:00
xamarin1.png Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00

README.md

Introspection Tests

Introspection tests are executed on target (both simulator and device for iOS) or a specific version of OSX. The application proceed to analyze itself using:

  • System.Reflection for managed code; and
  • the ObjectiveC runtime library for native code

and compare the results. E.g. if using .NET reflection it can see a binding for a NSBundle type then it should be able to find a native NSBundle type using the ObjC runtime functions. Otherwise an error is raised...

Since the application analyze itself it must contains everything we wish to test. That's why the introspection tests needs to be built with the managed linker disable, i.e. "Don't link".

Pros

  • The tests always tell the truth, which can differ from documentation or header files;

Cons

  • Incomplete - Not everything is encoded in the metadata / executable;
  • Too complete - Not every truth is good to be known (or published), which requires creating special cases in the tests