darrencauthon/AutoMoq — Issue #8: Generated mock is not able to be called twice
Author: giggio
Created: 2011-10-18 23:23:50+00:00
State: open

This will fail:

var mocker = new AutoMoqer()
var controller = mocker.Resolve();
mocker.GetMock().Setup(p => p.Get(id)).Returns(profile);
var p1 = profiles.Get(id);
var p2 = profiles.Get(id);
Assert.IsNotNull(p1);
//fails here, p2 is null, shouldn't be
Assert.IsNotNull(p2);