public void GetName_DLS_SimOnly() { TestRuntime.AssertSystemVersion(ApplePlatform.iOS, 7, 0, throwIfOtherPlatform: false); TestRuntime.AssertNotDevice("Use local file system (need a smaller sample)"); using (NSUrl url = new NSUrl(local_dls)) { Assert.That(SoundBank.GetName(url), Is.EqualTo("QuickTime Music Synthesizer "), "Name"); } }
public void GetName() { TestRuntime.AssertSystemVersion(PlatformName.iOS, 7, 0, throwIfOtherPlatform: false); Assert.Throws <ArgumentNullException> (delegate { SoundBank.GetName(null); }, "null"); using (NSUrl url = new NSUrl("http://www.xamarin.com")) { Assert.Null(SoundBank.GetName(url), "Not a SoundBank"); } }
public void GetName() { if (!TestRuntime.CheckSystemAndSDKVersion(7, 0)) { Assert.Ignore("requires iOS 7"); } Assert.Throws <ArgumentNullException> (delegate { SoundBank.GetName(null); }, "null"); using (NSUrl url = new NSUrl("http://www.xamarin.com")) { Assert.Null(SoundBank.GetName(url), "Not a SoundBank"); } }
public void GetName_DLS_SimOnly() { if (!TestRuntime.CheckSystemAndSDKVersion(7, 0)) { Assert.Ignore("requires iOS 7"); } if (Runtime.Arch == Arch.DEVICE) { Assert.Ignore("Use local file system (need a smaller sample)"); } using (NSUrl url = new NSUrl(local_dls)) { Assert.That(SoundBank.GetName(url), Is.EqualTo("QuickTime Music Synthesizer "), "Name"); } }