Added further integration tests for LastApiInfo

This commit is contained in:
Mark Taylor
2015-08-02 18:16:11 +01:00
parent ba365249a7
commit 5bd1f1d6c5
4 changed files with 99 additions and 9 deletions
+9 -1
View File
@@ -12,7 +12,7 @@ namespace Octokit.Tests.Integration
var githubUsername = Environment.GetEnvironmentVariable("OCTOKIT_GITHUBUSERNAME");
UserName = githubUsername;
Organization = Environment.GetEnvironmentVariable("OCTOKIT_GITHUBORGANIZATION");
var githubToken = Environment.GetEnvironmentVariable("OCTOKIT_OAUTHTOKEN");
if (githubToken != null)
@@ -52,6 +52,14 @@ namespace Octokit.Tests.Integration
public static Credentials ApplicationCredentials { get { return _oauthApplicationCredentials.Value; } }
public static bool IsUsingToken
{
get
{
return !String.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("OCTOKIT_OAUTHTOKEN"));
}
}
public static bool IsPaidAccount
{
get