public void LoadIniSettings_IfOverwriteIsAllowed_LoadsSelectedFile() { const string filename = "MyFileName"; SetSuccessfulOpenFileInteraction(filename); _invoker.When(x => x.Invoke(Arg.Any <MessageInteraction>())).Do(info => info.Arg <MessageInteraction>().Response = MessageResponse.Yes); _settingsHelper.CheckValidSettings(Arg.Any <PdfCreatorSettings>()).Returns(true); _creatorIniSettingsAssistant.LoadIniSettings(); _iniSettingsLoader.Received().LoadIniSettings(filename); _settingsManager.Received().ApplyAndSaveSettings(Arg.Any <PdfCreatorSettings>()); }