private void Test(int[] A, int expectedResult) { var result = _triangle.solution(A); Assert.AreEqual(expectedResult, result); }