IT:AD:Unit Testing/Automated/HowTO/Test IIS File Uploading
Summary
That one's a hard one.
HttpPostedFile is an internal file, and the HttpContext.Current.Files collection doesn't allow adding to it
Process
I haven't tried it, but Scott Hanselman has a post below.