Check argument value passed into function in unit test
问题 I am using OCMock v3 do unit testing, I want to test the following piece of code: @implementation School -(void) handleStudent:(Student*) student{ Bool result = [self checkIdentityWithName:student.name age:student.age]; ... } ... @end In my following test case I created a student instance with name "John", age 23. and then I run the function under test: -(void) testHandleStudent{ Student *student = [Student initWithName:@"John" age:23]; // function under test [schoolPartialMock handleStudent