public void FromNSSetStrings() { string text = "woot"; var arrayHandle = ObjC.ToNSSet(new[] { text }); var array = ObjC.FromNSSet(arrayHandle); Assert.AreEqual(1, array.Length); Assert.AreEqual(text, array[0]); }
public void FromNSSet() { string text = "woot"; IntPtr handle = ObjC.ToNSString(text); var arrayHandle = ObjC.ToNSSet(new[] { handle }); var array = ObjC.FromNSSet(arrayHandle); Assert.AreEqual(1, array.Length); Assert.AreEqual(text, array[0]); }
public void FromNSSetNullOfT() { var array = ObjC.FromNSSet <NSObject>(IntPtr.Zero); Assert.IsNull(array); }
public void FromNSSetNull() { var array = ObjC.FromNSSet(IntPtr.Zero); Assert.IsNull(array); }