public void intput__2_0_0_2_2_shouldReturn_1set() { var inputNum = new int[] { -2, 0, 0, 2, 2 }; ArrayList targetList = new ArrayList(); targetList.Add(new int[] { -2, 0, 2 }); var actual = ThreeSum.calThreeSum(inputNum); var comparer = Comparer <object> .Create((a, b) => ((int[])a).SequenceEqual((int[])b)? 0 : 1); CollectionAssert.AreEqual(targetList, actual, comparer); }