Beispiel #1
0
        public void NoProjectSettingsFile()
        {
            TfsSettings expectedTfsSettings = TfsSettingsTests.ExpectedTfsSettings(true);

            Assert.AreEqual(string.Empty, TfsSettings.Default.LoadedSettingsPath);
            TfsSettingsTests.AssertSettingsAreEuqal(expectedTfsSettings, TfsSettings.Default);
        }
Beispiel #2
0
        public void ProjectSettingsFileWithOverrides()
        {
            TfsSettings expectedTfsSettings = TfsSettingsTests.ExpectedTfsSettings(false);

            TfsSettings.Load(@"TfsSettings\OverrideAllSettings.xml");

            Assert.AreEqual(Path.GetFullPath(@"TfsSettings\OverrideAllSettings.xml"), TfsSettings.Default.LoadedSettingsPath);
            TfsSettingsTests.AssertSettingsAreEuqal(expectedTfsSettings, TfsSettings.Default);
        }
Beispiel #3
0
        public void ProjectClearSettings()
        {
            TfsSettings expectedTfsSettings = TfsSettingsTests.ExpectedTfsSettings(true);

            TfsSettings.Load(@"TfsSettings\OverrideAllSettings.xml");
            Assert.AreEqual(Path.GetFullPath(@"TfsSettings\OverrideAllSettings.xml"), TfsSettings.Default.LoadedSettingsPath);

            TfsSettings.Load(null);
            Assert.AreEqual(string.Empty, TfsSettings.Default.LoadedSettingsPath);
            TfsSettingsTests.AssertSettingsAreEuqal(expectedTfsSettings, TfsSettings.Default);
        }