I have a method like this:
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;
}
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??