xamarin-macios/tests/introspection
Rolf Bjarne Kvinge 022092a002 [introspection] Add a .NET project for iOS. 2020-06-30 18:41:16 +02:00
..
Mac [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
iOS [introspection] Add a .NET project for iOS. 2020-06-30 18:41:16 +02:00
ApiAvailabilityTest.cs [master] Merge Xcode11.5 Support and include provisionator changes (#8643) 2020-05-21 12:16:33 -04:00
ApiBaseTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiCMAttachmentTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiClassPtrTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiCoreImageFiltersTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiCtorInitTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiFieldTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiFrameworkTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiPInvokeTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiProtocolTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiSelectorTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiSignatureTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiStructTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiTypeTest.cs [xcode11.4] [tests] Add `.cctor` execution to introspection (#7987) 2020-02-26 16:16:04 -05:00
ApiTypoTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
ApiWeakPropertyTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +02:00
CoreSelectorTest.cs [introspection] Remove Classic code. (#8620) 2020-05-20 09:29:21 +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