xamarin-macios/tests/introspection
Sebastien Pouliot ca81952852
[fileprovider[ui]] Update for Xcode 11 beta 1 to 5 (#6759)
Moved some code from uikit.cs since the type moved a while ago. That
ease code sharing with macOS (XM) but it stays into the UIKit namespace
(for XI) until `XAMCORE_4_0` to ensure binary compatibility.
2019-08-14 08:12:07 -04:00
..
Mac Merge remote-tracking branch 'origin/xcode11' into issue-6222-xcode11 2019-06-28 07:50:14 +02:00
iOS [homekit] Update for xcode11 beta1 to beta5 - all platforms (#6710) 2019-08-09 11:17:10 -04:00
ApiAvailabilityTest.cs [tests] Add support to check for Xcode 11.0 and macOS 10.15 from tests/attributes 2019-06-12 00:26:23 -04:00
ApiBaseTest.cs [PDFKit] Update bindings to Xcode 10 Beta 1, 2 & 3 (#4439) 2018-07-13 14:14:05 -05:00
ApiCMAttachmentTest.cs [tests][intro] Fix an alternative glyph name that works on iOS 13 2019-06-12 00:25:32 -04:00
ApiClassPtrTest.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
ApiCoreImageFiltersTest.cs Bump for Xcode 11 beta 3 (#6480) 2019-07-02 23:34:24 -04:00
ApiCtorInitTest.cs [UIKit] Partial update to Xcode 11 Beta 1, 2 and 3 - Part 2 of ? (#6553) 2019-07-12 13:44:24 -04:00
ApiFieldTest.cs Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
ApiFrameworkTest.cs [d16-2] [foundation] Add custom trust/certificate validation to NSUrlSessionHandler. Fix #4170 (#6110) 2019-05-23 09:51:42 -05:00
ApiPInvokeTest.cs Merge branch 'master' into mono-2018-10 2019-02-05 21:38:47 +01:00
ApiProtocolTest.cs [fileprovider[ui]] Update for Xcode 11 beta 1 to 5 (#6759) 2019-08-14 08:12:07 -04:00
ApiSelectorTest.cs [corelocation] Update for Xcode 11 beta 1 to 4 (#6600) 2019-07-18 14:16:07 -04:00
ApiSignatureTest.cs Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
ApiStructTest.cs Move parts of dontlink tests into new introspection tests (#32) 2016-05-04 20:14:32 -04:00
ApiTypoTest.cs add wifes to allowed strings (#6644) 2019-07-24 15:57:29 -04:00
ApiWeakPropertyTest.cs [homekit] Expose weakly-typed API since the constants are extensible. Fixed #60303 (#3025) 2017-11-21 20:50:33 -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