示例#1
0
    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]);
    }