Пример #1
0
 protected VimApplicationSettingsTest(VisualStudioVersion visualStudioVersion = VisualStudioVersion.Vs2010)
 {
     _factory                   = new MockRepository(MockBehavior.Strict);
     _protectedOperations       = _factory.Create <IProtectedOperations>();
     _settingsStore             = _factory.Create <WritableSettingsStore>();
     _vimApplicationSettingsRaw = new VimApplicationSettings(visualStudioVersion, _settingsStore.Object, _protectedOperations.Object);
     _vimApplicationSettings    = _vimApplicationSettingsRaw;
 }
Пример #2
0
 protected VimApplicationSettingsTest(VisualStudioVersion visualStudioVersion = VisualStudioVersion.Vs2010, WritableSettingsStore settingsStore = null)
 {
     settingsStore              = settingsStore ?? new SimpleWritableSettingsStore();
     _factory                   = new MockRepository(MockBehavior.Strict);
     _protectedOperations       = _factory.Create <IVimProtectedOperations>();
     _vimApplicationSettingsRaw = new VimApplicationSettings(visualStudioVersion, settingsStore, _protectedOperations.Object);
     _vimApplicationSettings    = _vimApplicationSettingsRaw;
     _writableSettingsStore     = settingsStore;
 }