Ejemplo n.º 1
0
        public void OnDemandRuleDisconnect()
        {
            TestRuntime.AssertSystemVersion(PlatformName.iOS, 8, 0, throwIfOtherPlatform: false);
            TestRuntime.AssertSystemVersion(PlatformName.MacOSX, 10, 11, throwIfOtherPlatform: false);

            using (var rule = new NEOnDemandRuleDisconnect()) {
                Assert.That(rule.Action, Is.EqualTo(NEOnDemandRuleAction.Disconnect), "Action");
                OnDemandRule(rule);
            }
        }
Ejemplo n.º 2
0
        public void OnDemandRuleDisconnect()
        {
            if (!TestRuntime.CheckSystemAndSDKVersion(8, 0))
            {
                Assert.Inconclusive("Requires iOS 8.0+");
            }

            using (var rule = new NEOnDemandRuleDisconnect()) {
                Assert.That(rule.Action, Is.EqualTo(NEOnDemandRuleAction.Disconnect), "Action");
                OnDemandRule(rule);
            }
        }