public void ShowSaveFileDialogExtensionTest_FileTypeNull()
        {
            var service = new MockFileDialogService();
            service.Result = result;

            service.ShowSaveFileDialog((FileType)null);
        }
        public void ShowSaveFileDialogExtensionTest_WithDefaultFileName_FileTypeNull()
        {
            var service = new MockFileDialogService();
            service.Result = result;

            service.ShowSaveFileDialog(null, defaultFileName);
        }
        public void ShowSaveFileDialogExtensionTest_WithOwner_OwnerNull()
        {
            var service = new MockFileDialogService();

            service.Result = result;

            service.ShowSaveFileDialog(owner, (FileType)null);
        }
        public void ShowSaveFileDialogExtensionTest_FileTypeNull()
        {
            var service = new MockFileDialogService();

            service.Result = result;

            service.ShowSaveFileDialog((FileType)null);
        }
        public void ShowSaveFileDialogExtensionTest_WithOwner_WithDefaultFileName_FileTypeNull()
        {
            var service = new MockFileDialogService();

            service.Result = result;

            service.ShowSaveFileDialog(owner, null, defaultFileName);
        }
        public void ShowSaveFileDialogExtensionTest()
        {
            var service = new MockFileDialogService();
            service.Result = result;

            Assert.AreEqual(result, service.ShowSaveFileDialog(rtfFileType));
            Assert.AreEqual(FileDialogType.SaveFileDialog, service.FileDialogType);
            Assert.AreEqual(rtfFileType, service.FileTypes.Single());
        }
        public void ShowSaveFileDialogExtensionTest()
        {
            var service = new MockFileDialogService();

            service.Result = result;

            Assert.AreEqual(result, service.ShowSaveFileDialog(rtfFileType));
            Assert.AreEqual(FileDialogType.SaveFileDialog, service.FileDialogType);
            Assert.AreEqual(rtfFileType, service.FileTypes.Single());
        }
        public void ShowSaveFileDialogExtensionTest_WithMultipleFileTypes()
        {
            var service = new MockFileDialogService();

            service.Result = result;

            Assert.AreEqual(result, service.ShowSaveFileDialog(fileTypes));
            Assert.AreEqual(FileDialogType.SaveFileDialog, service.FileDialogType);
            Assert.IsTrue(service.FileTypes.SequenceEqual(new FileType[] { rtfFileType, xpsFileType }));
        }
        public void ShowSaveFileDialogExtensionTest_WithOwner_WithDefaultFileName()
        {
            var service = new MockFileDialogService();

            service.Result = result;

            Assert.AreEqual(result, service.ShowSaveFileDialog(owner, rtfFileType, defaultFileName));
            Assert.AreEqual(FileDialogType.SaveFileDialog, service.FileDialogType);
            Assert.AreEqual(owner, service.Owner);
            Assert.AreEqual(rtfFileType, service.FileTypes.Single());
            Assert.AreEqual(defaultFileName, service.DefaultFileName);
        }
        public void ShowSaveFileDialogExtensionTest_WithMultipleFileTypes()
        {
            var service = new MockFileDialogService();
            service.Result = result;

            Assert.AreEqual(result, service.ShowSaveFileDialog(fileTypes));
            Assert.AreEqual(FileDialogType.SaveFileDialog, service.FileDialogType);
            Assert.IsTrue(service.FileTypes.SequenceEqual(new FileType[] { rtfFileType, xpsFileType }));
        }
        public void ShowSaveFileDialogExtensionTest_WithOwner_WithDefaultFileName()
        {
            var service = new MockFileDialogService();
            service.Result = result;

            Assert.AreEqual(result, service.ShowSaveFileDialog(owner, rtfFileType, defaultFileName));
            Assert.AreEqual(FileDialogType.SaveFileDialog, service.FileDialogType);
            Assert.AreEqual(owner, service.Owner);
            Assert.AreEqual(rtfFileType, service.FileTypes.Single());
            Assert.AreEqual(defaultFileName, service.DefaultFileName);
        }
        public void ShowSaveFileDialogExtensionTest_WithOwner_OwnerNull()
        {
            var service = new MockFileDialogService();
            service.Result = result;

            service.ShowSaveFileDialog(owner, (FileType)null);
        }