xamarin-macios/tests/introspection
Alex Soto b3f7021eff
[Xcode 15.2] Bump to Xcode 15.2 (#19785)
This is a manual and squashed backport of
https://github.com/xamarin/xamarin-macios/pull/19717 and it was updated
to use Xcode 15.2 since Xcode 15.2 contains the same SDKs as Xcode 15.1
but Xcode 15.2 has visionOS SDK and it is the new stable release from
Apple.

---------

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2024-01-12 04:56:22 -05:00
..
Mac [PassKit] Fix the intro tests for PassKit on macOS. (#19760) 2024-01-08 11:58:08 -05:00
dotnet [Introspection] Fix a number of failing tests. 2023-08-04 11:47:28 -04:00
iOS [Metal] Add support for Xcode15. (#19379) 2023-12-12 17:39:56 -05:00
ApiAvailabilityTest.cs Change all null checking expressions to use 'is' and 'is not'. (#18176) 2023-05-05 17:52:19 +02:00
ApiBaseTest.cs [Introspection] Fix intro skip when the properties are internal. 2023-08-04 11:49:45 -04:00
ApiCMAttachmentTest.cs [Metal] Add support for Xcode15. (#19379) 2023-12-12 17:39:56 -05:00
ApiClassPtrTest.cs Change all null checking expressions to use 'is' and 'is not'. (#18176) 2023-05-05 17:52:19 +02:00
ApiCoreImageFiltersTest.cs Change all null checking expressions to use 'is' and 'is not'. (#18176) 2023-05-05 17:52:19 +02:00
ApiCtorInitTest.cs [PassKit] Add support Xcode15 Beta 7 (#19139) 2023-10-23 13:05:19 -05:00
ApiFieldTest.cs [Introspection] Fix failing tests. 2023-08-04 11:47:29 -04:00
ApiFrameworkTest.cs Auto-format source code 2023-08-04 11:49:45 -04:00
ApiPInvokeTest.cs [net8.0] Merge main into net8.0. 2023-08-14 15:36:54 +02:00
ApiProtocolTest.cs [Xcode 15.2] Bump to Xcode 15.2 (#19785) 2024-01-12 04:56:22 -05:00
ApiSelectorTest.cs [CoreImage] Add support for Xcode 15 beta 7. (#18874) 2023-09-04 12:17:28 -04:00
ApiSignatureTest.cs Change all null checking expressions to use 'is' and 'is not'. (#18176) 2023-05-05 17:52:19 +02:00
ApiStructTest.cs Change all null checking expressions to use 'is' and 'is not'. (#18176) 2023-05-05 17:52:19 +02:00
ApiTypeTest.cs Change all null checking expressions to use 'is' and 'is not'. (#18176) 2023-05-05 17:52:19 +02:00
ApiTypoTest.cs [MetalFX] Add the framework (which was added in Xcode 14) and add xcode 15 support. (#19107) 2023-10-23 10:40:02 -04:00
ApiWeakPropertyTest.cs [CoreText] Fix a few nullability issues in CTFontDescriptor. (#19439) 2023-11-21 07:59:13 +01:00
CoreSelectorTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01: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