void (String input, String expectedResult) { myFixture.configureByText(getTestName(false) + ".txt", input); IndentSelectionAction action = new IndentSelectionAction(); assertEquals(expectedResult != null, myFixture.testAction(action).isEnabled()); if (expectedResult != null) { myFixture.checkResult(expectedResult); } }