xamarin-macios/tests/mtouch
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
..
.gitignore [tests] Automatically build the mtouch test assembly when needed. (#5496) 2019-01-28 15:05:42 +01:00
Cache.cs [tests] Fix warning about unused variable. (#12762) 2021-09-17 16:01:48 +02:00
Compat.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ErrorTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
InlinerTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
LinkerTests.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
LocalizationTests.cs [Localization] Test to make sure the new resx files are compiled to Resources (Edited) (#11737) 2021-06-02 11:11:15 -05:00
MLaunchTool.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MTouch.cs [tests] Ignore the BindingLibraryDSymCreated test until we've fixed the underlying issue. (#14599) 2022-04-01 07:20:54 +02:00
MTouchTool.cs [mtouch/mmp/dotnet-bundler] Rework getting the availability attributes so that it works for .NET as well. (#13327) 2021-11-10 22:55:12 +01:00
Makefile [tests] Request labels after each test from NUnit. (#14628) 2022-04-04 19:19:45 +02:00
MiscTests.cs [tests] Adjust the Xamarin.Tests.Misc.PublicSymbols test to accept Brotli-related symbols. (#14605) 2022-04-04 09:55:05 +02:00
MonoNativeTests.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
RegistrarTest.cs [static registrar] Fix lookup of block proxy attributes. (#14820) 2022-04-26 13:47:18 +02:00
SdkTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Setup.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
StringUtilsTest.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
TimingTests.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
mtouchtests.csproj [mtouch/mmp/dotnet-bundler] Rework getting the availability attributes so that it works for .NET as well. (#13327) 2021-11-10 22:55:12 +01:00
mtouchtests.sln [tests] Make the mtouch test project reference the actual mtouch project. (#11400) 2021-05-04 14:10:03 +02:00