title: How can I pass a solution resource as a FileStream object (to an intercepted File.Open command)?
body: <p>I extend upon a legacy library which accesses files on the harddrive. I have such files as embedded resources in my unit test project. </p>
  
  <p>I have ported parts of the library to accept streams, which allows me to use GetManifestResourceStream to pass my embedded resource to the legacy library. This works fine, but it is a slight hassle. And people maintaining those libraries don't appreciate the "clutter" or having to publish new releases.</p>
  
  <p>JustMock and TypeMock allows me to intercept the File.Open commmand, and I wish to pass the library a FileStream object, but how do I construct a FileStream Object from an Embedded Manifest Resource? 
  I could of course create a physical file, but I don't wish to touch the file system while running tests.</p>