Beispiel #1
0
        public async Task Select_vBulletin5()
        {
            Uri uri     = new Uri("http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4333101-vbulletin-5-1-10-connect-is-now-available");
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(vBulletin5Adapter));
        }
Beispiel #2
0
        public async Task Select_vBulletin3()
        {
            Uri uri     = new Uri("http://forums.animesuki.com/showthread.php?t=128882");
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(vBulletin3Adapter));
        }
Beispiel #3
0
        public async Task Select_vBulletin4()
        {
            Uri uri     = new Uri("http://www.fandompost.com/oldforums/showthread.php?48716-One-Punch-Man-Discussion-Thread/page1");
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(vBulletin4Adapter));
        }
Beispiel #4
0
        public async Task Select_SpaceBattles()
        {
            Uri uri     = new Uri("https://forums.spacebattles.com/threads/vote-tally-program-v3.260204/");
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(XenForo1Adapter));
        }
Beispiel #5
0
        public async Task Select_QuestionableQuesting()
        {
            Uri uri     = new Uri("https://forum.questionablequesting.com/threads/qq-vote-tally-program.1065/");
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(XenForo1Adapter));
        }
Beispiel #6
0
        public async Task Select_XenForo_ThreadUri()
        {
            Uri uri     = new Uri("http://forums.sufficientvelocity.com/threads/vote-tally-program.199/");
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(XenForo1Adapter));
        }
Beispiel #7
0
        public async Task Select_phpBB()
        {
            Uri uri     = new Uri("http://www.ilovephilosophy.com/viewtopic.php?f=1&t=175054");
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(phpBBAdapter));
        }
Beispiel #8
0
        public async Task Select_NodeBB()
        {
            Uri uri     = new Uri("https://community.nodebb.org/topic/6298/nodebb-v0-7-3");
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(NodeBBAdapter));
        }
Beispiel #9
0
        public async Task Select_XenForo_DefaultUri()
        {
            IQuest quest   = new Quest();
            Uri    uri     = quest.ThreadUri;
            var    adapter = await ForumAdapterSelector.GetForumAdapterAsync(uri, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(XenForo1Adapter));
        }
Beispiel #10
0
        public async Task Select_XenForo_NoUri()
        {
            var adapter = await ForumAdapterSelector.GetForumAdapterAsync(null, CancellationToken.None);

            Assert.IsInstanceOfType(adapter, typeof(XenForo1Adapter));
        }