I am trying to use Moq to mock a method with two OUT parameters. This should work according to the Moq samples here: https://code.google.com/p/moq/wiki/QuickStart
var moqDB = new Mock<IMyDB>();
int Value1 = 500000;
decimal Value2 = 0.2M;
moqDB.Setup(db => db.DoSomething(out Value1, out Value2)).Returns(true);
But it does not set the values within the method I'm testing:
public virtual void TestMethod(IMyDB db)
{
int Value1 = 0;
decimal Value2 = 0.0M;
db.DoSomething(out Value1, out Value2);
// Check Values
}
What am I doing wrong?