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)); }
public void FromNSNumberNull() { double number = ObjC.FromNSNumber(IntPtr.Zero); Assert.AreEqual(default(double), number); }