public void TestHotLyricsNotFound() { var site = new HotLyrics("Foo", "Bar", new ManualResetEvent(false), 10000); if (site.SiteActive()) { site.FindLyrics(); var splitLyrics = site.Lyric.Split(' '); Assert.AreEqual("Not", splitLyrics[0]); Assert.AreEqual("found", splitLyrics[splitLyrics.Length - 1]); } }
public void TestHotLyrics2() { var site = new HotLyrics("Eric Clapton", "I Shot the Sheriff", new ManualResetEvent(false), 10000); if (site.SiteActive()) { site.FindLyrics(); var splitLyrics = site.Lyric.Split(' '); Assert.AreEqual("I", splitLyrics[0]); Assert.AreEqual("no.", splitLyrics[splitLyrics.Length - 1]); } }
public void TestHotLyrics3() { var site = new HotLyrics("Barry Manilow", "I Write The Songs", new ManualResetEvent(false), 10000); if (site.SiteActive()) { site.FindLyrics(); var splitLyrics = site.Lyric.Split(' '); Assert.AreEqual("I've", splitLyrics[0]); Assert.AreEqual("songs", splitLyrics[splitLyrics.Length - 1]); } }
public void TestHotLyrics() { var site = new HotLyrics("Van Halen", "I Can't Stop Lovin' You", new ManualResetEvent(false), 10000); if (site.SiteActive()) { site.FindLyrics(); var splitLyrics = site.Lyric.Split(' '); Assert.AreEqual("There's", splitLyrics[0]); Assert.AreEqual("YOU", splitLyrics[splitLyrics.Length - 1]); } }