Hi all. In one of our classes I defined a .Files property that exposes
an instance of the HttpFileCollection class. At runtime this instance
will be retrieved from HttpContext.Current.Request.Files.
However, in the unit-testing context, there is no HttpContext to refer
Usually, I'd allow the unit test to set up the instance of the
HttpFileCollection class to be returned by the tested class when
needed. However, HttpFileCollection does not seem to expose a
public .ctor, and it is sealed, so, in my unit tests I can't
instantiate one of them at all /tear.
Any suggestions on how to get around this problem ?
Thanks in advance,