Closed sen-lu closed 4 years ago
In general, please ask questions related to the usage of OCMock on StackOverflow using the ocmock
tag.
In particular, there is not enough information to diagnose the issue. Where does the test fail? What is the error message? How is thecontroller
instance variable initialised? How would that controller even know about the mock controller to call a message on it?
Closing due to inactivity.
Hi,
We're trying to verify that certain internal methods are or are not being called. Despite confirming that the arguments passed in the test & the internal method are the same object in memory, the below test is failing:
We also replaced the
message
andaction
arguments with[OCMArg any]
and the test continued to fail. However, if we replace themockController
with a partial mock, i.e.,the same test passes. The above behavior also applies to
OCMReject
tests.Any thoughts on this behavior? Thanks in advance!