コード例 #1
0
        public void TestLyricsmodeNotFound()
        {
            var site = new Lyricsmode("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]);
            }
        }
コード例 #2
0
        public void TestLyricsmode2()
        {
            var site = new Lyricsmode("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]);
            }
        }
コード例 #3
0
        public void TestLyricsmode3()
        {
            var site = new Lyricsmode("Barry Manilow", "I Write The Songs", new ManualResetEvent(false), 10000);

            if (site.SiteActive())
            {
                site.FindLyrics();
                var splitLyrics = site.Lyric.Split(' ');
                Assert.AreEqual("And", splitLyrics[0]);
                Assert.AreEqual("songs.", splitLyrics[splitLyrics.Length - 1]);
            }
        }
コード例 #4
0
        public void TestLyricsmode()
        {
            var site = new Lyricsmode("U2", "With Or Without You", new ManualResetEvent(false), 10000);

            if (site.SiteActive())
            {
                site.FindLyrics();
                var splitLyrics = site.Lyric.Split(' ');
                Assert.AreEqual("See", splitLyrics[0]);
                Assert.AreEqual("you", splitLyrics[splitLyrics.Length - 1]);
            }
        }