예제 #1
0
        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");
            }
        }
예제 #2
0
        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");
            }
        }
예제 #3
0
        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");
            }
        }
예제 #4
0
        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");
            }
        }