I am having issues mocking an array with Rhino Mock, any direction would be great.
namespace Checks_Rhino_Mocks
{
public class Check
{
public Header header;
public Detail[] details;
}
public class Header
{
public string Number;
public decimal Amount;
}
public class Detail
{
public string Id;
}
[TestFixture]
public class CheckUT
{
[Test]
public void CheckShouldHaveMultipleDetails()
{
MockRepository mock = new MockRepository();
Check check = mock.StrictMock<Check>();
check.header = mock.StrictMock<Header>();
//issue
check.details = mock.StrictMock<Detail[]>();
}
}
}