mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 12:03:19 +00:00
Added further integration tests for LastApiInfo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user