The following test is not working anymore since version JustMock_2021_2_615_4 but was working with JustMock_2021_1_326_1 and older versions:
public interface ITest
{
void Test(string text);
}
[TestMethod]
public void MyTestMethod()
{
var mock = Mock.Create<ITest>();
Mock.Arrange(() => mock.Test("")).IgnoreArguments().OccursNever();
Mock.Arrange(() => mock.Test(Arg.Matches<string>(a => a == "a"))).InOrder().OccursOnce();
Mock.Arrange(() => mock.Test(Arg.Matches<string>(a => a == "b"))).InOrder().OccursOnce();
mock.Test("a");
mock.Test("b");
Mock.Assert(mock);
}
If I remove the OccorsNever line, its working.
If I remove the 2 InOrder, its working.
Seems that something change there: https://www.telerik.com/support/whats-new/justmock/release-history/justmock-r2-sp1-2021