Exemplo n.º 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.");
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }