[monotouch-tests] Fix crasher in MacCat
This commit is contained in:
Родитель
16dcaa1c72
Коммит
58403035f5
|
@ -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__
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче