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