Esempio n. 1
0
 public void SetUp()
 {
     Asserts.EnsureMavericks();
     if (Asserts.IsAtLeastElCapitan)
     {
         Asserts.Ensure64Bit();
     }
 }
Esempio n. 2
0
        public void SetUp()
        {
            Asserts.EnsureMavericks();

            view = new NSStackView();

            first  = new NSView();
            second = new NSView();
            third  = new NSView();
        }
Esempio n. 3
0
        public void NSClipViewConstrainBoundsRect()
        {
            Asserts.EnsureMavericks();

            var clipView = new NSClipView(new CGRect(0, 0, 50, 50));
            var rect     = clipView.ConstrainBoundsRect(new CGRect(10, 10, 30, 30));

            Assert.IsTrue(rect.X == 0, "NSClipViewConstrainBoundsRect - X value was not 0");
            Assert.IsTrue(rect.Y == 0, "NSClipViewConstrainBoundsRect - Y value was not 0");
            Assert.IsTrue(rect.Width == 30, "NSClipViewConstrainBoundsRect - Width value was not 30");
            Assert.IsTrue(rect.Height == 30, "NSClipViewConstrainBoundsRect - Height value was not 30");
        }
Esempio n. 4
0
 public void SetUp()
 {
     Asserts.EnsureMavericks();
 }