one convention test needing review

This commit is contained in:
Brendan Forster
2015-07-23 22:04:25 +09:30
parent ee1c9b90a2
commit b763985aa9
+10 -1
View File
@@ -336,6 +336,7 @@ namespace Octokit
Issue
}
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RepositoryCollection : Collection<string>
{
public void Add(string owner, string name)
@@ -353,12 +354,20 @@ namespace Octokit
return Remove(GetRepositoryName(owner, name));
}
private static string GetRepositoryName(string owner, string name)
static string GetRepositoryName(string owner, string name)
{
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
return string.Format(CultureInfo.InvariantCulture, "{0}/{1}", owner, name);
}
internal string DebuggerDisplay
{
get
{
return String.Format(CultureInfo.InvariantCulture, "Repositories: {0}", Count);
}
}
}
}