public void SupportsUrl() { TestRuntime.AssertSystemVersion(ApplePlatform.iOS, 7, 0, throwIfOtherPlatform: false); Assert.False(SSReadingList.SupportsUrl(null), "null"); using (var http = new NSUrl("http://www.xamarin.com")) Assert.True(SSReadingList.SupportsUrl(http), "http"); using (var local = new NSUrl(local_file, false)) Assert.False(SSReadingList.SupportsUrl(local), "local"); }
public void SupportsUrl() { if (!TestRuntime.CheckSystemAndSDKVersion(7, 0)) { Assert.Ignore("Requires iOS7"); } Assert.False(SSReadingList.SupportsUrl(null), "null"); using (var http = new NSUrl("http://www.xamarin.com")) Assert.True(SSReadingList.SupportsUrl(http), "http"); using (var local = new NSUrl(local_file, false)) Assert.False(SSReadingList.SupportsUrl(local), "local"); }