public void GetAllSources() { ABAddressBook ab = new ABAddressBook(); var sources = ab.GetAllSources(); int value = Runtime.Arch == Arch.DEVICE || TestRuntime.CheckSystemAndSDKVersion(7, 0) ? 0 : 1; Assert.That(sources.Length, Is.GreaterThanOrEqualTo(value), "GetAllSources"); }
public void GetAllSources() { TestRuntime.CheckAddressBookPermission(); ABAddressBook ab = new ABAddressBook(); var sources = ab.GetAllSources(); int value = Runtime.Arch == Arch.DEVICE || TestRuntime.CheckSystemVersion(PlatformName.iOS, 7, 0, throwIfOtherPlatform: false) ? 0 : 1; Assert.That(sources.Length, Is.GreaterThanOrEqualTo(value), "GetAllSources"); }