I have a loop in production code that has evolved into processing batches of records. I need to modify an existing unit test to accommodate mocking the same method call each time through the loop returning different results on each loop (as it would in production).
Just some rough notes I made coming from a Moq framework and converting to Rhino Mocks:
Mocking a Cast on a Mocked Interface
var mockedInterface = new Mock<IInterface>();
Easy as that!
Was going down a rabbit hole trying to figure out how to check param value on a mocked method (pretty simple if truth be told).