示例#1
0
        public void GetArtistDirectoryName_GivenArtistNameWithNoSpecialCharacters()
        {
            // Arrange
            var sut        = new DirectoryNamer();
            var artistName = "ArtistName";
            var track      = CreateTrack(artistName);

            // Act
            var result = sut.GetArtistDirectoryName(track);

            // Assert
            Assert.AreEqual("ArtistName", result);
        }
示例#2
0
        public void GetAlbumDirectoryName_GivenAlbumTitleWithColon()
        {
            // Arrange
            var sut        = new DirectoryNamer();
            var albumTitle = "Album:Title";
            var track      = CreateTrack(albumTitle: albumTitle);

            // Act
            var result = sut.GetAlbumDirectoryName(track);

            // Assert
            Assert.AreEqual("Album_Title", result);
        }