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); }
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); }
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); }