/// <summary> /// Asserts the answer count. /// </summary> /// <param name="answer">The answer.</param> /// <param name="expectedCount">The expected count.</param> private static void AssertAnswerCount(CompetitionAnswer answer, int expectedCount) { // Arrange Competition competition = Stubs.StubCompetition(); // Act int count = competition.GetNumberOfEntrants(answer); // Assert Assert.AreEqual(expectedCount, count); }