public void Save_ProfileHasTargetDirectory_LastSaveDirectoryDoesNotGetSetAndNotSaved() { _job.Profile.TargetDirectory = "Not empty"; _lastSaveDirectoryHelper.Save(_job); _currentSettingsProvider.DidNotReceive(); _settingsManager.DidNotReceive().SaveCurrentSettings(); }
public void Execute_VerifyUserResponse_Yes_CallsIsDoneWithSuccess_CurrentSettingsDoesNotCallReset() { _tabSwitchSettingsCheck.CheckAffectedSettings().Returns(_resultWithChangesWithErrors); _interactionRequest.RegisterInteractionHandler <MessageInteraction>(i => { i.Response = MessageResponse.Yes; }); _beforeEvaluateTabSwitchCommand.Execute(null); Assert.IsTrue(_commandTester.IsDoneWasRaised); Assert.AreEqual(ResponseStatus.Success, _commandTester.LastResponseStatus); _currentSettingsProvider.DidNotReceive().Reset(); }
public void VerifyUserResponse_Yes__CallsIsDoneWithSuccess() { //force user interaction SetCurrentRegion(MainRegionViewNames.ProfilesView); SetErrorsInProfiles(); // _interactionRequest.RegisterInteractionHandler <MessageInteraction>(i => { i.Response = MessageResponse.Yes; }); _command.Execute(null); _currentSettingsProvider.DidNotReceive().Reset(); Assert.AreEqual(ResponseStatus.Success, _commandTester.LastResponseStatus); }