public void Spec03()
            {
                using (var testable = new EditSettingsTestable())
                {
                    testable.ViewMock
                    .Setup(x => x.ShowDialog())
                    .Returns(false);

                    testable.Instance.EditSettings(testable.Options);

                    testable.Verify <IFileSystemWrapper>(x => x.WriteAllText(testable.Options.SettingsFile, It.IsAny <string>(), It.IsAny <Encoding>()), Times.Never());
                }
            }
            public void Spec02()
            {
                using (var testable = new EditSettingsTestable())
                {
                    testable.ViewMock
                    .Setup(x => x.ShowDialog())
                    .Returns(true);

                    testable.Instance.EditSettings(testable.Options);

                    testable.Verify <ISettingsRepository>(x => x.Save(testable.Settings, testable.Options.SettingsFile));
                }
            }