public void TestExistingFileManager_IsFileExists()
        {
            FakeExistingFileManager manager = new FakeExistingFileManager();

            manager.ExistingCount = 2;

            string fileName = ((IExistingFileManager)manager).GenerateNewName("c:\\programmming\\photoassistant\\export\\photo.jpg");

            Assert.AreEqual("c:\\programmming\\photoassistant\\export\\photo_1.jpg", fileName);
        }
        public void TestExistingFileManager_DoNotShowDialogIfChoiseRemembered()
        {
            FakeExistingFileManager manager = new FakeExistingFileManager();
            SettingsStore           store   = new SettingsStore();
            SettingsStore           def     = SettingsStore.Default;

            SettingsStore.Default = store;

            FakeExistingFileManager.RememberChoise   = true;
            FakeExistingFileManager.ExistingFileMode = ExistingFileMode.OverrideWithoutPrompt;
            ExistingFileMode mode = ((IExistingFileManager)manager).AskUserForExistingFile(null, ExistingFileName);

            Assert.AreEqual(ExistingFileMode.OverrideWithoutPrompt, mode);

            SettingsStore.Default = def;
        }