iOS - Unit tests for KVO/delegate codes

Posted by ZhangChn on Programmers See other posts from Programmers or by ZhangChn
Published on 2012-09-04T07:43:09Z Indexed on 2012/09/04 9:48 UTC
Read the original article Hit count: 206

Filed under:
|
|

I am going to design a MVC pattern. It could be either designed as a delegate pattern, or a Key-Value-Observing(KVO), to notify the controller about changing models. The project requires certain quality control procedures to conform to those verification documents.

My questions:

  1. Does delegate pattern fit better for unit testing than KVO?

  2. If KVO fits better, would you please suggest some sample codes?

© Programmers or respective owner

Related posts about unit-testing

Related posts about ios