I have a strong preference for a highly predictable Arrange Act Assert format for unit tests.
Because Kiwi doesn't have an explicit verify statement for mocks, it forces a different pattern, something like:
// Arrange
Thing *mockThing = [CollaboratingClass mock];
TestedClass *sut = [[TestedClass alloc] initWithCollaborator:mockThing];
// Expect (collaboration expectations)
[[[mockThing should] receive] someMessage];
// Act
[mockArray someMethodInvolvingCollaborator];
// Assert (state expectations)
[[sut.someProperty should] equal:someValue];
I know that the verification happens anyway, but prefer to be able to quickly scan tests, with assertions and expectations being together in one predictable place. This is nicely enabled by mockito (and its Objective-C implementation OCMockito), where the verification step specifies the method call post-hoc, making a prior expectation step unnecessary.
I'm a relative Kiwi novice, so I may have missed something in the docs. Is there a way of explicitly verifying Kiwi mocks?