Example #1
0
        void RequiresIos8()
        {
            TestRuntime.AssertXcodeVersion(6, 0);

            if (dateComponentsFormatter == null)
            {
                dateComponentsFormatter = new NSDateComponentsFormatter();
            }
            if (energyFormatter == null)
            {
                energyFormatter = new NSEnergyFormatter();
            }
        }
        void RequiresIos8()
        {
            TestRuntime.AssertXcodeVersion(6, 0);
            TestRuntime.AssertSystemVersion(ApplePlatform.MacOSX, 10, 10, throwIfOtherPlatform: false);

            if (dateComponentsFormatter == null)
            {
                dateComponentsFormatter = new NSDateComponentsFormatter();
            }
            if (energyFormatter == null)
            {
                energyFormatter = new NSEnergyFormatter();
            }
        }
Example #3
0
        void RequiresIos8()
        {
            if (!TestRuntime.CheckSystemAndSDKVersion(8, 0))
            {
                Assert.Inconclusive("Requires iOS8+");
            }

            if (dateComponentsFormatter == null)
            {
                dateComponentsFormatter = new NSDateComponentsFormatter();
            }
            if (energyFormatter == null)
            {
                energyFormatter = new NSEnergyFormatter();
            }
        }