Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2014-08-27 23:10:53 +0400
committernulltoken <emeric.fermas@gmail.com>2014-08-27 23:11:41 +0400
commit96d270fceca6d3c0dda70ca509a0e58977aaba17 (patch)
treea170763f0f1dcd973ef7b7b57e4e4be6a951275e /LibGit2Sharp.Tests
parent520b1aa54c41c80e1c7eebcbaa565e42e62f13be (diff)
Drop tests that rely on the global configuration
We cannot make correct assumptions regarding the fact that the environment that host the test runner: - Contains a global git config file - Grants the test runner process with enough rights to write to this file - That this file already contains an expected entry Given those constraints, those tests are removed.
Diffstat (limited to 'LibGit2Sharp.Tests')
-rw-r--r--LibGit2Sharp.Tests/ConfigurationFixture.cs72
1 files changed, 0 insertions, 72 deletions
diff --git a/LibGit2Sharp.Tests/ConfigurationFixture.cs b/LibGit2Sharp.Tests/ConfigurationFixture.cs
index 0e777461..ad085a5a 100644
--- a/LibGit2Sharp.Tests/ConfigurationFixture.cs
+++ b/LibGit2Sharp.Tests/ConfigurationFixture.cs
@@ -80,30 +80,6 @@ namespace LibGit2Sharp.Tests
}
}
- [SkippableFact]
- public void CanGetGlobalStringValue()
- {
- using (var repo = new Repository(StandardTestRepoPath))
- {
- InconclusiveIf(() => !repo.Config.HasConfig(ConfigurationLevel.Global),
- "No Git global configuration available");
-
- Assert.NotNull(repo.Config.Get<string>("user.name"));
- }
- }
-
- [SkippableFact]
- public void CanGetGlobalStringValueWithoutRepo()
- {
- using (var config = new Configuration())
- {
- InconclusiveIf(() => !config.HasConfig(ConfigurationLevel.Global),
- "No Git global configuration available");
-
- Assert.NotNull(config.Get<string>("user.name"));
- }
- }
-
[Fact]
public void CanReadBooleanValue()
{
@@ -264,54 +240,6 @@ namespace LibGit2Sharp.Tests
}
}
- [SkippableFact]
- public void CanSetGlobalStringValue()
- {
- using (var repo = new Repository(StandardTestRepoPath))
- {
- InconclusiveIf(() => !repo.Config.HasConfig(ConfigurationLevel.Global),
- "No Git global configuration available");
-
- var existing = repo.Config.Get<string>("user.name");
- Assert.NotNull(existing);
-
- try
- {
- repo.Config.Set("user.name", "Unit Test", ConfigurationLevel.Global);
-
- AssertValueInGlobalConfigFile("name = Unit Test$");
- }
- finally
- {
- repo.Config.Set("user.name", existing.Value, ConfigurationLevel.Global);
- }
- }
- }
-
- [SkippableFact]
- public void CanSetGlobalStringValueWithoutRepo()
- {
- using(var config = new Configuration())
- {
- InconclusiveIf(() => !config.HasConfig(ConfigurationLevel.Global),
- "No Git global configuration available");
-
- var existing = config.Get<string>("user.name");
- Assert.NotNull(existing);
-
- try
- {
- config.Set("user.name", "Unit Test", ConfigurationLevel.Global);
-
- AssertValueInGlobalConfigFile("name = Unit Test$");
- }
- finally
- {
- config.Set("user.name", existing.Value, ConfigurationLevel.Global);
- }
- }
- }
-
[Fact]
public void SettingLocalConfigurationOutsideAReposThrows()
{