public void FromNSString() { string text = "WOOT"; IntPtr handle = ObjC.ToNSString(text); string actual = ObjC.FromNSString(handle); Assert.AreEqual(text, actual); }
public object MarshalNativeToManaged(IntPtr pNativeData) { if (pNativeData == IntPtr.Zero) { return(null); } return(ObjC.FromNSString(pNativeData)); }
public void FromNSStringNull() { string text = ObjC.FromNSString(IntPtr.Zero); Assert.IsNull(text); }