xamarin-macios/tests/introspection/iOS/iOSCoreImageFiltersTest.cs

52 строки
1.1 KiB
C#

//
// Test the generated API for all iOS CoreImage filters
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
// Alex Soto <alex.soto@xamarin.com>
//
// Copyright 2012-2013 Xamarin Inc. All rights reserved.
//
#if !__WATCHOS__
using System;
using System.Reflection;
#if XAMCORE_2_0
using CoreImage;
using Foundation;
using ObjCRuntime;
#else
using MonoTouch.CoreImage;
using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
#endif
using NUnit.Framework;
namespace Introspection {
[TestFixture]
// we want the tests to be available because we use the linker
[Preserve (AllMembers = true)]
public class iOSCoreImageFiltersTest : ApiCoreImageFiltersTest {
protected override bool Skip (Type type)
{
switch (type.Name) {
// iOS 12 beta 1 ?removed? some filters
// https://github.com/xamarin/xamarin-macios/issues/4189
case "CIAztecCodeGenerator":
case "CIBarcodeGenerator":
case "CICode128BarcodeGenerator":
case "CIPdf417BarcodeGenerator":
case "CIQRCodeGenerator":
if (TestRuntime.CheckXcodeVersion (10,0))
return true;
break;
}
return base.Skip (type);
}
}
}
#endif // !__WATCHOS__