public void Problem001_Tests() { int[] arr = new int[] { 3, 2, 4 }; int target = 6; int[] act = Problem001.TwoSum(arr, target); int[] exp = new int[] { 1, 2 }; Assert.Equal(exp, act); }
public void Problem002_Tests() { int[] arr = new int[] { 2, 7, 11, 15 }; int target = 9; int[] act = Problem001.TwoSum(arr, target); int[] exp = new int[] { 0, 1 }; Assert.Equal(exp, act); }