public void Perform() { SettingsForm.For(filesSettings).ShowDialog(); filesSettings.CheckSettings().OnFail(error => { MessageBox.Show(error); Perform(); }); }
public string CheckSettings_ReturnsResultWithError(string textFilePath, string boringWordsFilePath) { filesSettings.BoringWordsFilePath = boringWordsFilePath; filesSettings.TextFilePath = textFilePath; return(filesSettings.CheckSettings().Error); }