title: How do I mock the method GetValues() in System.Data.IDataReader?
body: <p>How do I mock the method GetValues() in System.Data.IDataReader? </p>
  
  <p>This method changes the array of objects passed to it, so it can’t simply return a mocked value.</p>
  
  <pre><code>private void UpdateItemPropertyValuesFromReader( object item, IDataReader reader )
  {
      object[] fields = new object[ reader.FieldCount ];
      reader.GetValues( fields ); //this needs to be mocked to return a fixed set of fields
  
  
      // process fields
     ...
  }
  </code></pre>