Actually, I just figured it out!
Turns out I was passing in the wrong parameters.
Example:
class Object
{
public Object(string name, int age, double weight)
{
...
}
}
When I tried to mock Object, I did:
>var objectMock = new Mock<Object>(null, 0, 0)
figuring that the "0" for weight would get cast to a double. However,
the cast never occurred, so I had passed in an "int" rather than a
"double," causing the problem.
On May 12, 11:56 am, Daniel Cazzulino <
k...@clariusconsulting.net>
wrote:
> Code?
>
> /kzu from Android
> > Unsubscribe: moqdisc-u...@googlegroups.com- Hide quoted text -
>
> - Show quoted text -