public void TestSetAllValuesToN() { int[] arr = new int[] { 0, 1, -2, 3, -4, 5 }; Part2.SetAllValuesToN(arr, 3); CollectionAssert.AreEqual(new int[] { 3, 3, 3, 3, 3, 3 }, arr); Part2.SetAllValuesToN(arr, 4); CollectionAssert.AreEqual(new int[] { 4, 4, 4, 4, 4, 4 }, arr); }