Ejemplo n.º 1
0
        void RequiresIos8()
        {
            TestRuntime.AssertXcodeVersion(6, 0);

            if (dateComponentsFormatter == null)
            {
                dateComponentsFormatter = new NSDateComponentsFormatter();
            }
            if (energyFormatter == null)
            {
                energyFormatter = new NSEnergyFormatter();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 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();
            }
        }