Hi Oren... I posted this on the blog too. I'm seeing an issue when
using AssertWasCalled with a method that has been called more than
once, and I'm wondering if maybe I am doing something wrong here.
[Test]
public void Rhino_Mocks_3_5_Issue() {
// IFormatProvider was the first thing that popped up, the
type really doesn't matter here
var mock = MockRepository.GenerateMock<IFormatProvider>();
// two calls to the same method
mock.GetFormat(typeof(string));
mock.GetFormat(typeof(string));
// this throws in RTM, did not in the RC
// also tried Repeat.Any but that throws a different
exception
// saying that it is not supported on AssertWasCalled
mock.AssertWasCalled(x => x.GetFormat(typeof(string)));
}
For now I've rolled back to the previous version.
Am I doing something wrong here?
Thanks,
Dave
On Oct 4, 7:01 pm, "Ayende Rahien" <
aye...@ayende.com> wrote:
> You can read about it here Rhino Mocks 3.5
> RTM<
http://ayende.com/Blog/archive/2008/10/05/rhino-mocks-3.5-rtm.aspx>