示例#1
0
    public void FromNSNumber()
    {
        double number = 1.999;
        IntPtr handle = ObjC.ToNSNumber(number);
        var    actual = ObjC.FromNSNumber(handle);

        Assert.AreEqual(Math.Round(number, 3), Math.Round(actual, 3));
    }
示例#2
0
    public void FromNSNumberNull()
    {
        double number = ObjC.FromNSNumber(IntPtr.Zero);

        Assert.AreEqual(default(double), number);
    }