public void test_solution_givenN_returnsNumberOfItsFactors(int given, int expected) { var target = new CountFactors(); var actual = target.solution(given); Assert.AreEqual(expected, actual); }
private void Test(int N, int expectedResult) { var result = _countFactors.solution(N); Assert.AreEqual(expectedResult, result); }