コード例 #1
0
        public void Invoke_InvalidSource_ReturnsFalse()
        {
            PlaySoundAction playSoundAction = new PlaySoundAction();

            Assert.IsFalse((bool)playSoundAction.Execute(null, null),
                "PlaySoundAction.Execute should return false with a null source path.");
        }
コード例 #2
0
        public void Invoke_AbsoluteSource_Invokes()
        {
            PlaySoundAction playSoundAction = new PlaySoundAction();

            playSoundAction.Source = "ms-appx:///foo.wav";
            bool result = (bool)playSoundAction.Execute(null, null);
            Assert.IsTrue(result);
        }
コード例 #3
0
        public void Invoke_RelativeSource_Invokes()
        {
            PlaySoundAction playSoundAction = new PlaySoundAction();

            playSoundAction.Source = "foo.wav";
            bool result = (bool)playSoundAction.Execute(null, null);
            Assert.IsTrue(result);
        }