var deleMock = Mock.Of<SomeDelegate>();
Mock.Get(deleMock).Setup(f => f()).Returns("something");
The above code works.
But with functional style:
var deleMock = Mock.Of<SomeDelegate>(f => f() == "something");
Cause the test stop at the line infinitely.
The above code works.
But with functional style:
Cause the test stop at the line infinitely.