Hi Scott,
now I have a problem with a method that has params as an argument:
public void DeleteRow(string table, params WhereCondition[] conditions)
I tried this:
this.databaseAccessMock.ExpectCall("DeleteRow").Args("Components", new ParameterCheckerEx(this.DeleteParameterChecker));
...
private bool DeleteParameterChecker(ParameterCheckerEventArgs e)
{
return true;
}
but the following message is thrown:
TestCase 'Orga.Validator.Database.ComponentDescriptionTest.Delete_Test' failed: TypeMock.VerifyException : Error in argument checker
----> System.InvalidCastException : Specified cast is not valid.
at TypeMock.MockManager.getReturn(String name, String methName, Object context, Object[] par)
at TypeMock.InternalMockManager.getReturn(Object that, String typeName, String methodName, Object p1, Object p2)
What am I doing wrong here?
Thanks for any help in advance,