public bool ToggleRepeatMode()
        {
            switch (_mockPlayerState.GetRepeat())
            {
            case Repeat.None:
                return(_mockPlayerState.SetRepeat(Repeat.All));

            case Repeat.All:
                return(_mockPlayerState.SetRepeat(Repeat.None));

            case Repeat.One:
                return(_mockPlayerState.SetRepeat(Repeat.None));

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public bool ToggleRepeatMode()
        {
            switch (_mockPlayerState.GetRepeat())
            {
            case Repeat.None:
                return(_mockPlayerState.SetRepeat(Repeat.All));

            case Repeat.All:
                return(_mockPlayerState.SetRepeat(Repeat.None));

            case Repeat.One:
                return(_mockPlayerState.SetRepeat(Repeat.None));

            default:
                return(false);
            }
        }