swift - How to unit test a function without a return value -


i have wrapper log system adds functionality remote logging.

the functions class functions , don't return value print log , call delegate method.

i want unit test each function calls right delegation method, methods dont return value. there way test this?

thanks

try use

readline() 

also create fake delegate test callback.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -