xamarin-macios/tests/introspection
Rolf Bjarne Kvinge c391695bb1
[AppKit] Add a weakly typed version of NSRulerView.WeakMeasurementUnits. Fixes #17742. (#17779)
There's not a finite list if measurement units, apps can create their own, so
we have to allow weakly typed measurement units (the normal property is bound
using a strong enum to NSRulerViewUnits).

Fixes https://github.com/xamarin/xamarin-macios/issues/17742.
2023-03-15 10:47:11 +01:00
..
Mac Add ventura to mac tests configurations (#17349) 2023-02-13 11:08:18 -05:00
dotnet [tests] Unify code related to how to load test assemblies. (#17111) 2023-01-13 22:20:47 +01:00
iOS [src] Commit some of the response files. (#17718) 2023-03-07 17:32:27 +01:00
ApiAvailabilityTest.cs [tests] Port and improve the availability attribute test from introspection. (#17083) 2022-12-20 12:46:06 +01:00
ApiBaseTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiCMAttachmentTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiClassPtrTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiCoreImageFiltersTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiCtorInitTest.cs Add ventura to mac tests configurations (#17349) 2023-02-13 11:08:18 -05:00
ApiFieldTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiFrameworkTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiPInvokeTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiProtocolTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiSelectorTest.cs Add ventura to mac tests configurations (#17349) 2023-02-13 11:08:18 -05:00
ApiSignatureTest.cs [runtime/generator] Add support for BindAs with CMVideoDimensions. (#17308) 2023-01-25 15:34:28 +01:00
ApiStructTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiTypeTest.cs [autoformat] Add introspection. (#16593) 2022-11-07 15:20:26 +01:00
ApiTypoTest.cs Add ventura to mac tests configurations (#17349) 2023-02-13 11:08:18 -05:00
ApiWeakPropertyTest.cs [AppKit] Add a weakly typed version of NSRulerView.WeakMeasurementUnits. Fixes #17742. (#17779) 2023-03-15 10:47:11 +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