title: c# Rhino mocks - Is this an appropriate use of mocks?
body: <p>Forgive me for my ignorance.  I'm trying to learn Rhino.</p>
  
  <pre><code>public Foo(Stream stream)
  {
      if (stream == null) throw new ArgumentNullException("woot");
      if (!stream.CanRead) throw new NotSupportedException("sporkish");
      if (!stream.CanSeek) throw new NotSupportedException("monkey");
  }
  </code></pre>
  
  <p>I would like to test this function with a NUnit test by making a test for those exceptions.  Is this an appropriate usage of mock objects, or do I actually need to make a special inherited class of Stream?  If mocking is appropriate, how do I do this using Rhino?  I can figure out how to return dummy values from functions (I think), but not properties.</p>