Get number rows in UITableView while unit tests- swift?
<p>I'm writing a test case for <code>UIViewController</code> that has UITableView. I want to ask how can I get number of rows in UITableView</p>

<pre><code> func testloadingDataIntoUiTableView()
    {      
      var  countRow:Int =  viewController.formListTableView.numberOfRowsInSection   
      XCTAssert(countRow == 4)  
    }
</code></pre>