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); } }
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); } }