public void TestGoToPreviousDirectoryCommand() { Assert.True(_tabViewModel.GoToPreviousDirectoryCommand.CanExecute(null)); _tabViewModel.GoToPreviousDirectoryCommand.Execute(null); Assert.Equal(PrevDirectory, _tabViewModel.CurrentDirectory); Assert.Equal(0, _tabViewModel.GetState().CurrentPositionInHistory); _autoMocker .GetMock <IFilePanelDirectoryObserver>() .VerifySet(m => m.CurrentDirectory = PrevDirectory); }