void () { myResultsViewer.onTestsCountInSuite(1); assertEquals(1, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("some_test", myTestsRootNode)); assertEquals(1, myResultsViewer.getTotalTestCount()); // if exceeds - will be incremented myResultsViewer.onTestStarted(createTestProxy("some_test2", myTestsRootNode)); assertEquals(2, myResultsViewer.getTotalTestCount()); }