public void ClearWithEmptyPlaylistShouldDoNothing() { // Arrange var playlist = new SimplePlaylist(); string currentSongPath; // Act playlist.Clear(); currentSongPath = playlist.GetCurrentSongPath(); // Assert Assert.Equal(string.Empty, currentSongPath); }
public void ClearWithItemsShouldClearPlaylist() { // Arrange var playlist = new SimplePlaylist(); var song01 = @"C:\music\song01.mp3"; var song02 = @"C:\music\song02.mp3"; playlist.Add(song01); playlist.Add(song02); string currentSongPath; // Act playlist.Clear(); currentSongPath = playlist.GetCurrentSongPath(); // Assert Assert.Equal(string.Empty, currentSongPath); }