[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:
Sebastien Pouliot 2017-01-12 09:40:14 -05:00
Родитель c98126eeda
Коммит 4ffcfe4b4f
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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)
{