Exemplo n.º 1
0
        public override void TypoTest()
        {
#if __WATCHOS__
            Assert.Ignore("Need to find alternative for UITextChecker on WatchOS.");
#else
            // the dictionary used by iOS varies with versions and
            // we don't want to maintain special cases for each version
            var sdk = new Version(Constants.SdkVersion);
            if (!UIDevice.CurrentDevice.CheckSystemVersion(sdk.Major, sdk.Minor))
            {
                Assert.Ignore("Typos only verified using the latest SDK");
            }

            // that's slow and there's no value to run it on devices as the API names
            // being verified won't change from the simulator
            TestRuntime.AssertSimulatorOrDesktop("Typos only detected on simulator");

            base.TypoTest();
#endif
        }