public void testGetJokesWhileCorrectCategoryName(string category, params string[] answers) { var jids = controller.GetJokesByCategory(category).Value; Assert.Equal(answers.Length, jids.Count); for (int i = 0; i < answers.Length; i++) { Assert.Equal(answers[i], jids[i].JID); } }