public void test_solution_givenArray_returnsNumberOfPairs(int[] given, int expected) { var target = new NumberOfDiscIntersections(); int actual = target.solution(given); Assert.AreEqual(expected, actual); }
public void NumberOfDiscIntersectionsTest_01() { var solution = nr.solution(new int[] { 1, 5, 2, 1, 4, 0 }); Assert.AreEqual(11, solution); }