[monotouch-tests] Fix crasher in MacCat

This commit is contained in:
Alex Soto 2021-04-04 19:22:19 -04:00
Родитель 16dcaa1c72
Коммит 58403035f5
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -49,6 +49,7 @@ namespace MonoTouchFixtures.AddressBook {
Assert.NotNull (ab.GetDefaultSource (), "GetDefaultSource"); Assert.NotNull (ab.GetDefaultSource (), "GetDefaultSource");
} }
#if !__MACCATALYST__ // Crashes with maccat
[Test] [Test]
public void GetSource () public void GetSource ()
{ {
@ -58,6 +59,7 @@ namespace MonoTouchFixtures.AddressBook {
// GetSource(0) is not reliable across device/simulator and iOS versions // GetSource(0) is not reliable across device/simulator and iOS versions
Assert.Null (ab.GetSource (Int32.MaxValue), "MaxValue"); Assert.Null (ab.GetSource (Int32.MaxValue), "MaxValue");
} }
#endif // !__MACCATALYST__
} }
} }