[monotouch-test] Fix ContactStoreTest for watchOS (#3006)

Backport/merge of PR #306 to avoid random failures on bots.
Should fix https://github.com/xamarin/maccore/issues/577
This commit is contained in:
Sebastien Pouliot 2017-11-14 16:10:19 -05:00 коммит произвёл GitHub
Родитель 311fe265f8
Коммит f4fc3d0be0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -50,7 +50,7 @@ namespace MonoTouchFixtures.Contacts {
var contacts = store.GetUnifiedContacts (predicate, fetchKeys, out error);
// we can't be sure what's on devices, so check there's no error is the only thing we do
// but it's in the default simulator build (but not the watchOS simulator)
#if !MONOMAC
#if !MONOMAC && !__WATCHOS__
if ((error == null) && (Runtime.Arch == Arch.SIMULATOR)) {
Assert.That (contacts.Length, Is.EqualTo (1), "Length");
identifier = contacts [0].Identifier;