All Questions
Tagged with expectations parameters
3 questions
0
votes
0
answers
404
views
Moq setup does not match parameter because it is a subtype?
I'm trying to use Setup on a Moq like I've done many times to return a value, but I can't seem to understand why the parameter matching fails in this case.
Here's what I'm doing:
var myParameter = ...
0
votes
0
answers
541
views
Jmockit: Mock calls in the @Parameters method
I have a parameterized test class
@RunWith(Parameterized.class)
class Tests{
private int count;
MyClass object;
@Parameters
public static Collection<Object[]> data() {
...
0
votes
1
answer
1k
views
Setting expectations on MoQ
I'm using MoQ to test some controllers I have. I'm not able to set the expectations. This is the code I have:
var rep = new Mock<IUserRepository>();
rep.Setup(r => r.Save());
...