public void Correct_number_of_results(int size, int expected) { var set = new[] { 1, 2, 3, 4, 5 }; var combinations = new CombinationService().GetPermutations(set, size); Assert.That(combinations.Count(), Is.EqualTo(expected)); }