public void FromNSArray() { string text = "woot"; IntPtr handle = ObjC.ToNSString(text); var arrayHandle = ObjC.ToNSArray(new[] { handle }); var array = ObjC.FromNSArray(arrayHandle); Assert.AreEqual(1, array.Length); Assert.AreEqual(text, array[0]); }
public void FromNSArrayNull() { var array = ObjC.FromNSArray(IntPtr.Zero); Assert.IsNull(array); }
public void FromNSArrayNullOfT() { var array = ObjC.FromNSArray <NSObject>(IntPtr.Zero); Assert.IsNull(array); }