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:
authorDrew Miller <nemo@half-ogre.com>2013-01-27 01:41:43 +0400
committernulltoken <emeric.fermas@gmail.com>2013-01-27 02:32:39 +0400
commitf5fe1eef3d49bd70eb21b540dd9075447beb09cd (patch)
treef5a286a1f8748a0a4289c7f89cf0d3edcf9803f1 /LibGit2Sharp/Configuration.cs
parent91990fbb384c5a2be8128b6393121abc4c15f5dc (diff)
make Configuration#Get methods virtual
The commit https://github.com/libgit2/libgit2sharp/commit/3d29d95dc7d0addc889679c93d22952fe7bb9d35 moved #Get overloads to extension methods. The problem is the remaining #Get methods aren't virtual, which means you can't stub in unit tests. Which broke a bunch of GHfW tests.
Diffstat (limited to 'LibGit2Sharp/Configuration.cs')
-rw-r--r--LibGit2Sharp/Configuration.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGit2Sharp/Configuration.cs b/LibGit2Sharp/Configuration.cs
index 1730a064..6fb23891 100644
--- a/LibGit2Sharp/Configuration.cs
+++ b/LibGit2Sharp/Configuration.cs
@@ -180,7 +180,7 @@ namespace LibGit2Sharp
/// <typeparam name = "T">The configuration value type</typeparam>
/// <param name = "key">The key</param>
/// <returns>The <see cref="ConfigurationEntry{T}"/>, or null if not set</returns>
- public ConfigurationEntry<T> Get<T>(string key)
+ public virtual ConfigurationEntry<T> Get<T>(string key)
{
Ensure.ArgumentNotNullOrEmptyString(key, "key");
@@ -208,7 +208,7 @@ namespace LibGit2Sharp
/// <param name = "key">The key</param>
/// <param name = "level">The configuration file into which the key should be searched for</param>
/// <returns>The <see cref="ConfigurationEntry{T}"/>, or null if not set</returns>
- public ConfigurationEntry<T> Get<T>(string key, ConfigurationLevel level)
+ public virtual ConfigurationEntry<T> Get<T>(string key, ConfigurationLevel level)
{
Ensure.ArgumentNotNullOrEmptyString(key, "key");