Thanks again for contacting us. In terms of mocking a method that accepts an integer value and returns a boolean value. It is always possible to do this:
Mock.Arrange(() => foo.Bar(10)).Returns(true);
Here foo is the mocked instance from Mock.Create<Foo>().
In addition, you can specify matchers in this way for the same syntax:
Mock.Arrange(() => foo.Bar(Arg.Matches<
>(x => x == 10)).Returns(true);
Therefore the following syntax is not necessary to mock a call.
, bool>(x => _Foo.Bar(x)).Returns(true);
Please let me know if I am missing something or you can point me to the exact problem you are facing so that I can help you out.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>