Beispiel #1
0
        public void NewObject()
        {
            var obj = new UIWindow();

            Assert.AreNotEqual(IntPtr.Zero, obj.ClassHandle);
            Assert.AreNotEqual(IntPtr.Zero, obj.Handle);
        }
Beispiel #2
0
 public void IsKeyWindow()
 {
     var obj = new UIWindow();
     Assert.IsFalse(obj.IsKeyWindow);
 }
Beispiel #3
0
 public void NewObjectWithFrame()
 {
     var frame = new CGRect(1, 2, 3, 4);
     var obj = new UIWindow(frame);
     Assert.AreEqual(frame, obj.Frame);
 }
Beispiel #4
0
 public void ObjectSame()
 {
     var a = new UIWindow();
     var b = Runtime.GetNSObject<UIWindow>(a.Handle);
     Assert.AreSame(a, b);
 }
Beispiel #5
0
 public void NewObjectDispose()
 {
     var obj = new UIWindow();
     obj.Dispose();
 }