xamarin-macios/tests/introspection
Sebastien Pouliot e8de7afd4d
[mlcompute] New Xcode 12 framework. Up-to-date with beta 3 (#9208)
Framework not shipped for iOS/tvOS simulators - even if it's available
on macOS...

Feedback FB8132074 / https://github.com/xamarin/maccore/issues/2271
2020-07-28 20:55:28 -04:00
..
Mac [tools][tests] Update to use macOS 11.0 (instead of 10.16) (#9188) 2020-07-24 22:03:46 -04:00
iOS [mlcompute] New Xcode 12 framework. Up-to-date with beta 3 (#9208) 2020-07-28 20:55:28 -04:00
ApiAvailabilityTest.cs [xcode12] Bump for beta 1 (#8935) 2020-06-26 14:02:44 -04:00
ApiBaseTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
ApiCMAttachmentTest.cs [xcode12] Bump for beta 3 (#9162) 2020-07-24 08:52:33 -04:00
ApiClassPtrTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
ApiCoreImageFiltersTest.cs [xcode12] Update for Xcode 12 beta 2 (#9052) 2020-07-10 08:56:23 -04:00
ApiCtorInitTest.cs [MetalPerformanceShaders] Neural Networks Update to Xcode 11 (#8844) 2020-07-26 18:27:06 -04:00
ApiFieldTest.cs [xcode12] Bump for beta 1 (#8935) 2020-06-26 14:02:44 -04:00
ApiFrameworkTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
ApiPInvokeTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
ApiProtocolTest.cs [MetalPerformanceShaders] Neural Networks Update to Xcode 11 (#8844) 2020-07-26 18:27:06 -04:00
ApiSelectorTest.cs [MetalPerformanceShaders] Neural Networks Update to Xcode 11 (#8844) 2020-07-26 18:27:06 -04:00
ApiSignatureTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
ApiStructTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
ApiTypeTest.cs [xcode11.4] [tests] Add `.cctor` execution to introspection (#7987) 2020-02-26 16:16:04 -05:00
ApiTypoTest.cs [mlcompute] New Xcode 12 framework. Up-to-date with beta 3 (#9208) 2020-07-28 20:55:28 -04:00
ApiWeakPropertyTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
CoreSelectorTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02: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