public void SetSupportedSSIDs_Null() { #if __TVOS__ Assert.Throws <NotSupportedException> (() => CaptiveNetwork.SetSupportedSSIDs(null)); #else Assert.Throws <ArgumentNullException> (() => CaptiveNetwork.SetSupportedSSIDs(null)); #endif }
public void SetSupportedSSIDs() { TestRuntime.AssertSystemVersion(PlatformName.MacOSX, 10, 8, throwIfOtherPlatform: false); #if MONOMAC bool supported = true; #else // that API is deprecated in iOS9 - and it might be why it returns false (or not) bool supported = !TestRuntime.CheckXcodeVersion(7, 0); #endif Assert.That(CaptiveNetwork.SetSupportedSSIDs(new string [2] { "one", "two" }), Is.EqualTo(supported), "set"); }
public void SetSupportedSSIDs() { if (Runtime.Arch == Arch.SIMULATOR) { if (RunningOnSnowLeopard) { Assert.Inconclusive("This test crash on the simulator with Snow Leopard"); } } // that API is deprecated in iOS9 - and it might be why it returns false (or not) bool supported = !UIDevice.CurrentDevice.CheckSystemVersion(9, 0); Assert.That(CaptiveNetwork.SetSupportedSSIDs(new string [2] { "one", "two" }), Is.EqualTo(supported), "set"); }
public void SetSupportedSSIDs() { TestRuntime.AssertSystemVersion(ApplePlatform.MacOSX, 10, 8, throwIfOtherPlatform: false); #if MONOMAC || __MACCATALYST__ bool supported = true; #else // that API is deprecated in iOS9 - and it might be why it returns false (or not) bool supported = !TestRuntime.CheckXcodeVersion(7, 0); #endif #if __TVOS__ #if !NET Assert.Throws <NotSupportedException> (() => CaptiveNetwork.SetSupportedSSIDs(new string [2] { "one", "two" }), "set"); #endif #else Assert.That(CaptiveNetwork.SetSupportedSSIDs(new string [2] { "one", "two" }), Is.EqualTo(supported), "set"); #endif }
public void SetSupportedSSIDs_Null() { CaptiveNetwork.SetSupportedSSIDs(null); }