예제 #1
0
        public void ActivePackageSource_SourceChanged_ActivePackageSourceUpdatedInSettings()
        {
            CreateOptions();
            var packageSource = new PackageSource("http://sharpdevelop.com", "Test");

            options.ActivePackageSource = packageSource;

            var expectedKeyValuePair = new KeyValuePair <string, string> ("Test", "http://sharpdevelop.com");
            KeyValuePair <string, string> actualKeyValuePair = fakeSettings.GetValuePassedToSetValueForActivePackageSourceSection();

            Assert.AreEqual(expectedKeyValuePair, actualKeyValuePair);
        }
        public void ActivePackageSource_SourceChanged_ActivePackageSourceUpdatedInSettings()
        {
            CreateOptions();
            var packageSource = new PackageSource("http://monodevelop.com", "Test");

            options.ActivePackageSource = packageSource;

            var          expectedSetting = new SettingValue("Test", "http://monodevelop.com", false);
            SettingValue actualSetting   = fakeSettings.GetValuePassedToSetValueForActivePackageSourceSection();

            Assert.AreEqual(expectedSetting, actualSetting);
        }