public void ResetAllSongs()
        {
            SongToPlay song1 = new SongToPlay {Played = true};
            SongToPlay song2 = new SongToPlay ();
            SongToPlay song3 = new SongToPlay {Played = true, IsPlaying = true};
            PlayList playList = new PlayList();
            playList.SongsToPlay.Add(song1);
            playList.SongsToPlay.Add(song2);
            playList.SongsToPlay.Add(song3);

            playList.ResetAllSongs();

            Assert.IsFalse(song1.Played);
            Assert.IsFalse(song2.Played);
            Assert.IsFalse(song3.Played);
            Assert.IsFalse(song1.IsPlaying);
            Assert.IsFalse(song2.IsPlaying);
            Assert.IsFalse(song3.IsPlaying);
        }
Пример #2
0
        public void ResetAllSongs()
        {
            SongToPlay song1 = CreateViewModel.SongToPlay(null, false, true);
            SongToPlay song2 = CreateViewModel.SongToPlay(null);
            SongToPlay song3 = CreateViewModel.SongToPlay(null, true, true);
            PlayList playList = new PlayList();
            playList.SongsToPlay.Add(song1);
            playList.SongsToPlay.Add(song2);
            playList.SongsToPlay.Add(song3);

            playList.ResetAllSongs();

            Assert.IsFalse(song1.Played);
            Assert.IsFalse(song2.Played);
            Assert.IsFalse(song3.Played);
            Assert.IsFalse(song1.IsPlaying);
            Assert.IsFalse(song2.IsPlaying);
            Assert.IsFalse(song3.IsPlaying);
        }