How do I set an expectation on a property of an instance?
Let's say I have the following code:
id request = OCMClassMock([NSMutableURLRequest class]);
And I want to make sure that, in my implementation, the HTTPMethod property is set to @"Get"
, how would my test verify this?
Try something like this:
This test will fail until your change
@"POST"
to@"GET"
which is, I believe, what you want.