public void MarkPortalOnline_Null()
        {
#if __TVOS__
            Assert.Throws <NotSupportedException> (() => CaptiveNetwork.MarkPortalOnline(null));
#else
            Assert.Throws <ArgumentNullException> (() => CaptiveNetwork.MarkPortalOnline(null));
#endif
        }
        public void MarkPortalOnline()
        {
            TestRuntime.AssertSystemVersion(PlatformName.MacOSX, 10, 8, throwIfOtherPlatform: false);


#if __TVOS__
            Assert.Throws <NotSupportedException> (() => CaptiveNetwork.MarkPortalOnline("xamxam"));
#else
            Assert.False(CaptiveNetwork.MarkPortalOnline("xamxam"));
#endif
        }
示例#3
0
 public void MarkPortalOnline()
 {
     Assert.False(CaptiveNetwork.MarkPortalOnline("xamxam"));
 }
示例#4
0
 public void MarkPortalOnline_Null()
 {
     CaptiveNetwork.MarkPortalOnline(null);
 }
示例#5
0
        public void MarkPortalOnline()
        {
            TestRuntime.AssertSystemVersion(PlatformName.MacOSX, 10, 8, throwIfOtherPlatform: false);

            Assert.False(CaptiveNetwork.MarkPortalOnline("xamxam"));
        }