This seems like a bug on our side, as in this scenario we do not differ the parameters passed in both the arrangements. I will log it in our bug tracking system and will make sure it is fixed for future releases.
Further, I found out that everything works as expected after there are some collection members added to the family1
arguments, like this:
var family1 =
var family2 =
var test = Mock.Create<ITest>();
Mock.Arrange(() => test.Test(family1)).Returns(1).MustBeCalled();
Mock.Arrange(() => test.Test(family2)).Returns(2).MustBeCalled();
var result1 = test.Test(family1) + test.Test(family2);
I hope this helps. Please, let us know if there is anything else we can help with.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.