Exemplo n.º 1
0
        public void TestLyrsterNotFound()
        {
            var site = new Lyrster("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]);
            }
        }
Exemplo n.º 2
0
        public void TestLyrster2()
        {
            var site = new Lyrster("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("deputy", splitLyrics[splitLyrics.Length - 1]);
            }
        }
Exemplo n.º 3
0
        public void TestLyrster3()
        {
            var site = new Lyrster("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("cry", splitLyrics[splitLyrics.Length - 1]);
            }
        }
Exemplo n.º 4
0
        public void TestLyrster()
        {
            var site = new Lyrster("Van Halen", "Ice Cream Man", new ManualResetEvent(false), 10000);

            if (site.SiteActive())
            {
                site.FindLyrics();
                var splitLyrics = site.Lyric.Split(' ');
                Assert.AreEqual("Dedicate", splitLyrics[4].Trim());
                Assert.AreEqual("satis-uh-fy", splitLyrics[splitLyrics.Length - 1]);
            }
        }