title: How to unit-test a file writing method with Visual Studio's built-in automated tests?
body: <ol>
  <li><p>I use Visual Studio 2008 Professional automated tests. I have a function that writes to a file. I want to unit test the file writing function. I have read somewhere that I would have to mock a file somehow. I don't know how to do it. Can you help?</p></li>
  <li><p>How to unit-test a method that downloads a page from the Internet?</p></li>
  </ol>