### Question:
TextUI { public void setPassingTestsVisible(boolean passingTestsVisible) { this.passingTestsVisible = passingTestsVisible; } TextUI(MessageReceiver<Event<SuiteListener>> eventStream, Printer printer); void setPassingTestsVisible(boolean passingTestsVisible); void setProgressBarVisible(boolean progressBarVisible); boolean hasFailures(); void update(); void updateUntilFinished();  }### Answer:
@Test public void can_choose_to_show_passing_tests() { ui.setPassingTestsVisible(true); SuiteMother.onePassingTest(listener); assertInOutput("Run #1"); assertInOutput("Pass: 1"); }
@Test public void can_choose_to_hide_passing_tests() { ui.setPassingTestsVisible(false); SuiteMother.onePassingTest(listener); assertNotInOutput("Run #1"); assertInOutput("Pass: 1"); }