[tests][coreanimation] Fix the ManagedSignature to ignore (was not always a protocol) CAAnimationDelegate and only process public API. Fix reported issues on CoreAnimation
This commit is contained in:
Родитель
c98126eeda
Коммит
4ffcfe4b4f
|
@ -192,7 +192,7 @@ namespace Introspection {
|
|||
|
||||
public Type CurrentType { get; private set; }
|
||||
|
||||
const BindingFlags Flags = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance;
|
||||
const BindingFlags Flags = BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance;
|
||||
|
||||
[Test]
|
||||
public void NativeSignatures ()
|
||||
|
@ -834,8 +834,13 @@ namespace Introspection {
|
|||
if (t.GetCustomAttribute<ModelAttribute> (false) == null)
|
||||
return true;
|
||||
n++;
|
||||
switch (t.Name) {
|
||||
case "CAAnimationDelegate": // this was not a protocol before iOS 10 and was not bound as such
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void CheckManagedMemberSignatures (MethodBase m, Type t, ref int n)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче