title: Testing objects created inside the class
body: <p>I have a method like this:</p>
  
  <pre><code>public void ABC(ViewModeL model)
      {
          var dataTable = new DataTable();
          dataTable.Columns.Add("column1", typeof(int));
          dataTable.Columns.Add("column2", typeof(int));                     
          var dr = dataTable.NewRow();
          dr["column1"] = 2;
          dr["column2"] = 0;
       }
  </code></pre>
  
  <p>I want to assert on the dataTable object but I am not able to figure out how to do so, since it is created inside the method and also it is not returned by this method. Is it possible to test it using rhino mocks??   </p>