public void RemovePlaylistTest() { // Arrange MusicPlayer player = new MusicPlayer(); Playlist playlist = new Playlist("Test"); List <Playlist> expected = new List <Playlist>(); player.Add(playlist); // Act player.Remove(playlist); // Assert CollectionAssert.AreEqual(expected, player.Playlists); }
public void AddArtistTest() { // Arrange DateTime birthday = new DateTime(2020, 12, 9); Artist hans = new Artist("Hans", birthday); MusicPlayer player = new MusicPlayer(); List <Artist> expected = new List <Artist>(); expected.Add(hans); // Act player.Add(hans); // Assert CollectionAssert.AreEqual(expected, player.Artists); }
public void RemoveSongTest() { // Arrange MusicPlayer player = new MusicPlayer(); DateTime birthday = new DateTime(2020, 12, 9); Artist hans = new Artist("Hans", birthday); string path = @"C:\Users\joeyo\OneDrive\Music"; Song song = new Song("Test", 2020, hans, path); List <Song> expected = new List <Song>(); player.Add(song); // Act player.Remove(song); // Assert CollectionAssert.AreEqual(expected, player.Songs); }