Exemple #1
0
        public void WhenAddingSongToAlbum()
        {
            var expectedSongsForAlbum2 = new List <string> {
                "fileName2", "fileName3"
            };

            _mp3ClassHierarchy.AddInformation(new Mp3Node {
                AlbumName = "Album2", ArtistName = "Artist", FileName = "fileName3"
            });
            Assert.That(_mp3ClassHierarchy.GetSongsForAlbumOfArtist("Album2", "Artist"), Is.EqualTo(expectedSongsForAlbum2));
        }
Exemple #2
0
 public void Setup()
 {
     _mp3ClassHierarchy = new artistAlbumCatalog();
     _mp3ClassHierarchy.AddInformation(new Mp3Node {
         AlbumName = "Album1", ArtistName = "Artist", FileName = "fileName1"
     });
     _mp3ClassHierarchy.AddInformation(new Mp3Node {
         AlbumName = "Album2", ArtistName = "Artist", FileName = "fileName2"
     });
     _expectedAlbumsForArtist = new List <string> {
         "Album1", "Album2"
     };
 }