Can I make Rhino Mocks GenerateStub or GenerateMock return a new type every time?
I want to create an IList of objects that are all different concrete types, so: var tasks = new List<ITask>(); foreach (string taskName in taskNames) { var task = MockRepository.GenerateStub<ITask>(); task.Stub(t => t.Name).Return(taskName); tasks.Add(task); } return tasks; The problem is that each stub object is all the s...