// // Unit tests for CNContact // // Authors: // Sebastien Pouliot // // Copyright 2015 Xamarin Inc. All rights reserved. // #if !__TVOS__ using System; using Contacts; using Foundation; using NUnit.Framework; namespace MonoTouchFixtures.Contacts { [TestFixture] [Preserve (AllMembers = true)] public class ContactTest { [SetUp] public void MinimumSdkCheck () { TestRuntime.AssertXcodeVersion (7, 0); } [Test] public void DescriptorForAllComparatorKeys () { var keys = CNContact.GetDescriptorForAllComparatorKeys (); // while most input for ICNKeyDescriptor are done with NSString // the output is opaque and an internal type // note: this is not very robust - but I want to know if this changes during the next betas Assert.True (keys.Description.StartsWith ("