public void TestC5(int[] nums, int target, int[] expectedResult) { ITwoSumSolution solution = new TwoSumSolution_C5(); int[] result = solution.TwoSum(nums, target); result.Should().Equal(expectedResult); }
public void Perf_Test_C5() { ITwoSumSolution solution = new TwoSumSolution_C5(); _ = solution.TwoSum(new[] { 0, 1, 4, 7, 11, 15 }, 16); }