public void NewObject() { var obj = new UIUserNotificationSettings(); Assert.AreNotEqual(IntPtr.Zero, obj.ClassHandle); Assert.AreNotEqual(IntPtr.Zero, obj.Handle); }
public void RegisterUserNotificationSettings(UIUserNotificationSettings notificationSettings) { ObjC.MessageSend(Handle, "registerUserNotificationSettings:", notificationSettings.Handle); }
public void NewObjectDispose() { var obj = new UIUserNotificationSettings(); obj.Dispose(); }
public void ObjectSame() { var a = new UIUserNotificationSettings(); var b = Runtime.GetNSObject<UIUserNotificationSettings>(a.Handle); Assert.AreSame(a, b); }