public void PauseSongTest() { var playControlViewModel = new PlayControlViewModel(); Assert.IsFalse(playControlViewModel.IsPlay); playControlViewModel.PauseSong(); Assert.IsFalse(playControlViewModel.IsPlay); playControlViewModel.IsPlay = true; Assert.IsTrue(playControlViewModel.IsPlay); }
private void timeSlider_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { playControlViewModel.PauseSong(); }