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

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

2016-05-26 16:06:52 +03:00
//
// Unit tests for UIGuidedAccessRestriction
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2013 Xamarin Inc. All rights reserved.
//
#if !__WATCHOS__ && !MONOMAC
2016-05-26 16:06:52 +03:00
using System;
#if XAMCORE_2_0
using Foundation;
using UIKit;
using ObjCRuntime;
#else
using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
using MonoTouch.UIKit;
#endif
using NUnit.Framework;
namespace MonoTouchFixtures.UIKit {
[TestFixture]
[Preserve (AllMembers = true)]
public class GuidedAccessRestrictionTest {
[Test]
public void GetState ()
{
TestRuntime.AssertSystemVersion (PlatformName.iOS, 7, 0, throwIfOtherPlatform: false);
2016-05-26 16:06:52 +03:00
Assert.That (UIGuidedAccessRestriction.GetState (null), Is.EqualTo (UIGuidedAccessRestrictionState.Allow), "null");
}
}
}
#endif // !__WATCHOS__