Skip to content

Commit

Permalink
Update forum adapter tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinematics committed Jun 1, 2015
1 parent c159ff7 commit ce62431
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions TallyUnitTest/ForumAdapterFactoryUnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void TestDefault()
IQuest quest = new Quest();
var adapter = ForumAdapterFactory.GetAdapter(quest);

Assert.IsInstanceOfType(adapter, typeof(SufficientVelocityAdapter));
Assert.IsInstanceOfType(adapter, typeof(XenForoAdapter));
}

[TestMethod]
Expand All @@ -24,7 +24,7 @@ public void TestSufficientVelocity()
quest.Site = "http://forums.sufficientvelocity.com/";
var adapter = ForumAdapterFactory.GetAdapter(quest);

Assert.IsInstanceOfType(adapter, typeof(SufficientVelocityAdapter));
Assert.IsInstanceOfType(adapter, typeof(XenForoAdapter));
}

[TestMethod]
Expand All @@ -34,7 +34,7 @@ public void TestSpaceBattles()
quest.ThreadName = "http://forums.spacebattles.com/";
var adapter = ForumAdapterFactory.GetAdapter(quest);

Assert.IsInstanceOfType(adapter, typeof(SpaceBattlesAdapter));
Assert.IsInstanceOfType(adapter, typeof(XenForoAdapter));
}
}
}
8 changes: 4 additions & 4 deletions TallyUnitTest/UnitTestQuest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,17 +338,17 @@ public void TestForumAdapters()
Quest a = new Quest();

var adapter = a.GetForumAdapter();
Assert.IsInstanceOfType(adapter, typeof(SufficientVelocityAdapter));
Assert.IsInstanceOfType(adapter, typeof(XenForoAdapter));

a.ThreadName = "http://forums.spacebattles.com/";
a.ThreadName = "http://forums.sufficientvelocity.com/";
var adapterTask = a.GetForumAdapterAsync(System.Threading.CancellationToken.None);
adapter = adapterTask.Result;
Assert.IsInstanceOfType(adapter, typeof(SpaceBattlesAdapter));
Assert.IsInstanceOfType(adapter, typeof(XenForoAdapter));

a.Site = "http://forums.spacebattles.com/";
adapterTask = a.GetForumAdapterAsync(System.Threading.CancellationToken.None);
adapter = adapterTask.Result;
Assert.IsInstanceOfType(adapter, typeof(SpaceBattlesAdapter));
Assert.IsInstanceOfType(adapter, typeof(XenForoAdapter));
}
#endregion

Expand Down

0 comments on commit ce62431

Please sign in to comment.