public void CopyTo()
{
using (var collection = new TempFileCollection())
{
const int ArrayIndex = 1;
const string FileName = "File";
collection.AddFile(FileName, keepFile: false);
var array = new string[ArrayIndex + collection.Count];
collection.CopyTo(array, ArrayIndex);
Assert.Null(array[0]);
Assert.Equal(FileName, array[ArrayIndex]);
}
}