xamarin-macios/tests/monotouch-test/EventKit/EKUIBundleTest.cs

35 строки
702 B
C#

//
// Unit tests for EKUIBundle
//
// Authors:
// Alex Soto <alexsoto@microsoft.com>
//
// Copyright 2017 Xamarin Inc. All rights reserved.
//
#if HAS_EVENTKITUI
using System;
using EventKitUI;
using Foundation;
using NUnit.Framework;
namespace MonoTouchFixtures.EventKitUI {
[TestFixture]
[Preserve (AllMembers = true)]
public class EKUIBundleTest {
[Test]
public void BundleTest ()
{
if (!TestRuntime.CheckXcodeVersion (9, 0))
Assert.Ignore ("Ignoring tests: Requires iOS11+");
var bundle = EKUIBundle.UIBundle;
Assert.NotNull (bundle, "Was Null");
Assert.AreEqual ("com.apple.eventkitui", bundle.BundleIdentifier, "BundleIdentifier");
}
}
}
#endif // HAS_EVENTKITUI