use a different property to get the current username, instead of Credentials

This commit is contained in:
Brendan Forster
2013-11-28 14:23:34 -08:00
parent 73f301e8e7
commit 1a60206f35
4 changed files with 24 additions and 15 deletions
@@ -60,7 +60,7 @@ namespace Octokit.Tests.Integration
var user = await github.User.Current();
Assert.Equal(Helper.Credentials.Login, user.Login);
Assert.Equal(Helper.UserName, user.Login);
}
}
@@ -86,7 +86,7 @@ namespace Octokit.Tests.Integration
{
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
Credentials = new Credentials(Helper.Credentials.Login, "bad-password")
Credentials = new Credentials(Helper.UserName, "bad-password")
};
var userUpdate = new UserUpdate
{