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.");
        }
        public void Invoke_RelativeSource_Invokes()
        {
            PlaySoundAction playSoundAction = new PlaySoundAction();

            playSoundAction.Source = "foo.wav";
            bool result = (bool)playSoundAction.Execute(null, null);
            Assert.IsTrue(result);
        }
        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);
        }
 public void Constructor_DefaultConstructor_SetsVolumeCorrectly()
 {
     PlaySoundAction playSoundAction = new PlaySoundAction();
     Assert.AreEqual(0.5, playSoundAction.Volume, "Volume should be initialized to 0.5");
 }