xamarin-macios/tests/introspection
Rolf Bjarne Kvinge 76482387c8
[SafetyKit] Added bindings for SafetyKit. (#20263)
This also required a minor generator fix to fix generation of async methods
with a nullable NSError.

---------

Co-authored-by: Israel Soto <issoto@microsoft.com>
2024-03-15 08:15:01 +01: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 [DeviceDiscoveryExtension] Added bindings for DeviceDiscoveryExtension. (#20272) 2024-03-14 07:58:45 +01: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 [SafetyKit] Added bindings for SafetyKit. (#20263) 2024-03-15 08:15:01 +01: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 [DeviceDiscoveryUI] Added bindings for DeviceDiscoveryUI. (#20271) 2024-03-08 10:07:39 +01: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
README.md
xamarin1.png

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