void () { pushTwoStates(); assertTrue(myHistory.isBackAvailable()); mySelectedFile.myValid = false; myHistory.removeInvalidFilesFromStacks(); assertFalse(myHistory.isBackAvailable()); assertFalse(myHistory.isForwardAvailable()); }