Beispiel #1
0
        public void TestLyrics007_2()
        {
            var site = new Lyrics007("U2", "Staring At The Sun", new ManualResetEvent(false), 10000);

            if (site.SiteActive())
            {
                site.FindLyrics();
                var splitLyrics = site.Lyric.Split(' ');
                Assert.AreEqual("Summer", splitLyrics[0]);
                Assert.AreEqual("I", splitLyrics[splitLyrics.Length - 1]);
            }
        }
Beispiel #2
0
        public void TestLyrics007NotFound()
        {
            var site = new Lyrics007("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]);
            }
        }
Beispiel #3
0
        public void TestLyrics007()
        {
            var site = new Lyrics007("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]);
            }
        }