title: How to test controller class in MVC?
body: <p>I'm building a simple iOS app in Swift according to the <a href="https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller" rel="nofollow noreferrer">Model-View-Controller</a> pattern. I can test the Model class by giving it input data and asserting the output result against my expectation. But I was wondering how I could test the Controller class?</p>
  
  <p>It seems that if I do want to test the Controller class, the testing logic would be much more complicated. Is there a standard way of testing the Controller class?</p>