xamarin-macios/tests/introspection
Rolf Bjarne Kvinge ffc8dad1ec [tests][intro] Add mapping for SecAccessControl on macOS (#1754)
Wrench is not happy, but jenkins bots are fine. This is likely something
internal to macOS which varies per version.
2017-02-23 09:56:26 -05:00
..
Mac [tests][intro] Add mapping for SecAccessControl on macOS (#1754) 2017-02-23 09:56:26 -05:00
iOS [corefoundation] Fix CallbackDelegate signature to be 32bits safe (enum). Fixes #52279 (#1714) 2017-02-20 08:14:04 -05:00
ApiBaseTest.cs Merge branch 'xcode8' 2016-09-09 15:29:37 -04:00
ApiCMAttachmentTest.cs [tests] Fix intro failures reported from iOS 6.1 and 7.1 devices (#629) 2016-08-18 23:02:42 -04:00
ApiClassPtrTest.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
ApiCoreImageFiltersTest.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
ApiCtorInitTest.cs [networkextension] Fix some API that works only from an extension with specific entitlements (#1158) 2016-11-29 14:20:48 -05:00
ApiFieldTest.cs [XM] Fix XM bindings to include Notifications and update test (#1307) 2016-12-06 12:29:50 -06:00
ApiPInvokeTest.cs Merge branch 'xcode8' 2016-09-09 15:29:37 -04:00
ApiProtocolTest.cs [modelio] Fix several incorrect (headers) availability on new API (only in iOS10, not 9) (#726) 2016-08-31 17:59:53 -04:00
ApiSelectorTest.cs merge xcode8.2 into master 2016-12-12 21:26:23 -05:00
ApiSignatureTest.cs [XM] Update ManagedSignature to work on XM and update XAMCORE_3_0 to 4 2017-01-12 13:46:19 -06:00
ApiStructTest.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
ApiTypoTest.cs merge xcode8.2 into master 2016-12-12 21:26:23 -05: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