void () { myResultsViewer.onCustomProgressTestsCategory("foo", 0); assertEquals(0, myResultsViewer.getTotalTestCount()); myResultsViewer.onCustomProgressTestStarted(); assertEquals(0, myResultsViewer.getTotalTestCount()); myResultsViewer.onCustomProgressTestStarted(); assertEquals(0, myResultsViewer.getTotalTestCount()); // count will be updated only on tests finished if wasn't set myResultsViewer.onTestingFinished(myTestsRootNode); assertEquals(2, myResultsViewer.getTotalTestCount()); }