Exemplo n.º 1
0
        public void GetLyricsShouldReturnNullWhenNoLyricsAreFound(string artist, string songTitle)
        {
            var lyricsSearcher = new LyricsPluginDataProvider();
            var lyrics         = lyricsSearcher.GetLyrics(artist, songTitle);

            Assert.Null(lyrics);
        }
Exemplo n.º 2
0
        public void GetLyricsShouldWorkCorrectly(string artist, string songTitle, string stringThatShouldBeContained)
        {
            var lyricsSearcher = new LyricsPluginDataProvider();
            var lyrics         = lyricsSearcher.GetLyrics(artist, songTitle);

            Assert.NotNull(lyrics);
            Assert.Contains(stringThatShouldBeContained, lyrics);
        }