示例#1
0
        public void Test(int[] nums, int target, int[] expectedResult)
        {
            ITwoSumSolution solution = new TwoSumSolution();

            int[] result = solution.TwoSum(nums, target);

            result.Should().Equal(expectedResult);
        }
示例#2
0
        public void Perf_Test()
        {
            ITwoSumSolution solution = new TwoSumSolution();

            _ = solution.TwoSum(new[] { 0, 1, 4, 7, 11, 15 }, 16);
        }