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

            using (var rule = new NEOnDemandRuleIgnore()) {
                Assert.That(rule.Action, Is.EqualTo(NEOnDemandRuleAction.Ignore), "Action");
                OnDemandRule(rule);
            }
        }
Esempio n. 2
0
        public void OnDemandRuleIgnore()
        {
            if (!TestRuntime.CheckSystemAndSDKVersion(8, 0))
            {
                Assert.Inconclusive("Requires iOS 8.0+");
            }

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