mercredi 8 avril 2015

What is the syntax for expecting a call to the obj.[index] operator in Rhino Mocks?

I'm trying to write a test where I want to validate a an inherited [] set operator is called. So I want to the mock to validate code like this was ran: list[0] = "val";


I tried using this but it gave me a argument count mismatch: Expect.Call(list[0]).SetPropertyWithArgument("val");


But it comes back saying there is an invalid amount of arguments on the method. Anyone know if Rhino mocks support this?


Aucun commentaire:

Enregistrer un commentaire