public void ConvertAndCopyAll(int[] input, int outputLength, string[] expectedOutput) { string[] output = new string[outputLength]; GenericCollectionUtils.ConvertAndCopyAll(input, output, value => value.ToString()); Assert.AreEqual(expectedOutput, output); }