xamarin-macios/tests/bindings-test
Rolf Bjarne Kvinge 50283a8b97
[static registrar] Fix lookup of block proxy attributes. (#14820)
Fix lookup of block proxy attributes to look in protocols declared on base classes.

Broken pseudo code:

    class BaseApplicationDelegate : NSObject, IUIApplicationDelegate {}
    class MyApplicationDelegate : BaseApplicationDelegate {
        [Export("application:didReceiveRemoteNotification:fetchCompletionHandler:")]
        public void DidReceiveRemoteNotification (UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler) { }
    }

the static registrar wouldn't figure out that the DidReceiveRemoteNotification method
comes from the UIApplicationDelegate, because it would only look in protocols defined
on MyApplicationDelegate, not any base classes.

The fix is to look in base classes too.

Also:

* Fix a boolean logic error when matching parameters between methods in another
  (rarely used) code path when looking for matching binding methods in the extension
  class for protocols with optional members.
* Add tests.

Fixes https://github.com/dotnet/maui/issues/6259.
2022-04-26 13:47:18 +02:00
..
dotnet [tests] Use 'BundledNETCoreAppTargetFrameworkVersion' to specify the .NET version in the project files. (#14666) 2022-04-06 20:58:20 +02:00
iOS [tests] Change TestRuntime.CheckSystemVersion to take a ApplePlatform value instead of a PlatformName enum. (#13350) 2021-11-15 08:06:36 +01:00
macOS [tests] Change TestRuntime.CheckSystemVersion to take a ApplePlatform value instead of a PlatformName enum. (#13350) 2021-11-15 08:06:36 +01:00
ApiDefinition.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ApiProtocol.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
CodeBehind.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
Messaging.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ProtocolTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
RegistrarBindingTest.cs [static registrar] Fix lookup of block proxy attributes. (#14820) 2022-04-26 13:47:18 +02:00
RuntimeTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
StructsAndEnums.cs [C] Clear OpenTK namespace (#13767) 2022-02-14 18:50:23 +01:00
libtest.linkwith.cs [msbuild/tests] Add support for xcframeworks with static libraries in them. (#13459) 2021-11-30 18:19:22 +01:00