コード例 #1
0
        public void Setup()
        {
            upUtil = Mock.Of <IUserProfileSettingsUtils>();
            MockSettingsStore.Setup(settingStore => settingStore.GetSettings <ExportSettings>())
            .Returns(new ExportSettings());
            MockSettingsStore.Setup(settingStore => settingStore.GetSettings <UserProfileSettings>())
            .Returns(new UserProfileSettings());

            _sut = Open();
        }
コード例 #2
0
 public int GetReadOnlySettingsStore(uint scope, out IVsSettingsStore store)
 {
     store = new MockSettingsStore((SettingsScope)scope, _rootCollection);
     return(VSConstants.S_OK);
 }