2016-05-05 03:14:32 +03:00
|
|
|
using System;
|
|
|
|
|
|
|
|
using Foundation;
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
2016-06-22 02:46:07 +03:00
|
|
|
using Xamarin.Tests;
|
2016-05-05 03:14:32 +03:00
|
|
|
|
|
|
|
namespace Introspection {
|
|
|
|
|
|
|
|
[TestFixture]
|
|
|
|
public class MacApiWeakPropertyTest : ApiWeakPropertyTest {
|
|
|
|
protected override bool Skip (Type type)
|
|
|
|
{
|
|
|
|
switch (type.Name) {
|
|
|
|
case "CATextLayer": // CATextLayer.WeakFont is done correctly by hand
|
|
|
|
return true;
|
|
|
|
case "NSAttributedStringDocumentAttributes": // NSAttributedStringDocumentAttributes.WeakDocumentType is done by hand, not a binding
|
|
|
|
return true;
|
2017-10-03 00:55:23 +03:00
|
|
|
// VNImageOptions is a DictionaryContainer that exposes a Weak* NSDictionary
|
|
|
|
case "VNImageOptions":
|
|
|
|
return true;
|
2016-05-05 03:14:32 +03:00
|
|
|
}
|
2020-10-11 21:43:41 +03:00
|
|
|
|
|
|
|
switch (type.Namespace) {
|
|
|
|
case "MonoMac.QTKit": // QTKit has been removed from macOS
|
|
|
|
case "QTKit":
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-05-05 03:14:32 +03:00
|
|
|
return base.Skip (type);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|