public async Task NameReferenceTest() { // Check for non-case sensitivity in referencing other voters. PostComponents p1 = new PostComponents("Beyogi", "12345", "[x] Vote for something"); PostComponents p2 = new PostComponents("Mini", "12345", "[x] beyogi"); List <PostComponents> posts = new List <PostComponents>(); posts.Add(p1); posts.Add(p2); Task t = voteCounter.TallyPosts(posts, sampleQuest, CancellationToken.None); await t; Assert.AreEqual(2, voteCounter.GetVotersCollection(VoteType.Vote).Count); Assert.AreEqual(1, voteCounter.GetVotesCollection(VoteType.Vote).Count); Assert.IsTrue(voteCounter.HasVote("[x] Vote for something\r\n", VoteType.Vote)); }