Example #1
0
        public void GivenAnItemWhoseArtistHasNoCountry_WhenPrintedToString_ThenMatchesExpectedFormat()
        {
            var libraryItem = new MusicLibraryItem(
                new ArtistData("artistName"),
                new ReleaseData("releaseName", "split"));

            var expected = "artistName - releaseName (split)";
            var actual   = libraryItem.ToString();

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void GivenAnItemWithNoReleaseTypeAndNoArtistCountry_WhenPrintedToString_ThenMatchesExpectedFormat()
        {
            var libraryItem = new MusicLibraryItem(
                new ArtistData("artistName"),
                new ReleaseData("releaseName"));

            var expected = "artistName - releaseName";
            var actual   = libraryItem.ToString();

            Assert.AreEqual(expected, actual);
        }
Example #3
0
        public void GivenAnItem_WhenPrintedToString_ThenMatchesExpectedFormat()
        {
            var libraryItem = new MusicLibraryItem(
                new ArtistData("artistName", "country"),
                new ReleaseData("releaseName", "demo"));

            var expected = "artistName (country) - releaseName (demo)";
            var actual   = libraryItem.ToString();

            Assert.AreEqual(expected, actual);
        }