title: How to unit test a function without a return value
body: <p>I have a wrapper for the log system that adds some functionality like remote logging.</p>
  
  <p>The functions are <code>class functions</code> and they don't return a value they just print to the log and call a <code>delegate method</code>.</p>
  
  <p>I want to unit test that each function calls the right delegation method, but the methods dont return any value. so is there any way to test this?</p>
  
  <p>Thanks</p>