xamarin-macios/tests/monotouch-test/UIKit/PopoverBackgroundViewTest.cs

30 строки
588 B
C#
Исходник Обычный вид История

2016-05-26 16:06:52 +03:00
// Copyright 2011 Xamarin Inc. All rights reserved
#if !__WATCHOS__ && !MONOMAC
2016-05-26 16:06:52 +03:00
using System;
using System.Drawing;
using CoreGraphics;
2016-05-26 16:06:52 +03:00
using Foundation;
using UIKit;
using NUnit.Framework;
namespace MonoTouchFixtures.UIKit {
[TestFixture]
[Preserve (AllMembers = true)]
public class PopoverBackgroundViewTest {
[Test]
public void InitWithFrame ()
{
var frame = new CGRect (10, 10, 100, 100);
2016-05-26 16:06:52 +03:00
using (UIPopoverBackgroundView pbv = new UIPopoverBackgroundView (frame)) {
Assert.That (pbv.Frame, Is.EqualTo (frame), "Frame");
}
}
}
}
#endif // !__WATCHOS__