void () { myResultsViewer.onTestsCountInSuite(2); myResultsViewer.onTestStarted(createTestProxy("some_test1", myTestsRootNode)); assertEquals(2, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("some_test2", myTestsRootNode)); assertEquals(2, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("some_test3", myTestsRootNode)); assertEquals(3, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("some_test4", myTestsRootNode)); assertEquals(4, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestsCountInSuite(2); myResultsViewer.onTestStarted(createTestProxy("another_test1", myTestsRootNode)); assertEquals(6, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("another_test2", myTestsRootNode)); assertEquals(6, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("another_test3", myTestsRootNode)); assertEquals(7, myResultsViewer.getTotalTestCount()); }