In a couple of my tests, I want to prove that the calling code can handle a null being returned, but whenever I tell the Returns method to return null, I get an instance of the returned type.
So for example lets says I have a method signature like:
public interface ExampleInterface
IList<IBob> GetMeAllTheBobs(ISomeParameter someParameter)
When I mock like so:
var stubExampleClass = Mock.Create<IExampleClass>();
Mock.Arrange(() => stubExampleClass.GetMeAllThyeBobs(Arg.Any<ISomeParameter>()).Returns(null);
I will get an instance of IList<IBob> back instead of null.