fix impacted tests, live a happy life

This commit is contained in:
Brendan Forster
2014-04-30 13:52:42 +08:00
parent 74b6e93fae
commit e0dab3ea8b
2 changed files with 4 additions and 4 deletions
@@ -80,9 +80,9 @@ namespace Octokit.Tests.Clients
async () => await client.Create(newRepository));
Assert.False(exception.OwnerIsOrganization);
Assert.Equal("haacked", exception.Owner);
Assert.Null(exception.Owner);
Assert.Equal("aName", exception.RepositoryName);
Assert.Equal(new Uri("https://github.com/haacked/aName"), exception.ExistingRepositoryWebUrl);
Assert.Null(exception.ExistingRepositoryWebUrl);
}
[Fact]
@@ -169,7 +169,7 @@ namespace Octokit.Tests.Clients
Assert.Equal("illuminati", exception.Owner);
Assert.Equal("aName", exception.RepositoryName);
Assert.Equal(new Uri("https://github.com/illuminati/aName"), exception.ExistingRepositoryWebUrl);
Assert.Equal("There is already a repository named 'aName' in the organization 'illuminati'",
Assert.Equal("There is already a repository named 'aName' in the organization 'illuminati'.",
exception.Message);
}
@@ -38,7 +38,7 @@ namespace Octokit
Ensure.ArgumentNotNullOrEmptyString(name, "repositoryName");
Ensure.ArgumentNotNull(baseAddress, "baseAddress");
Owner = owner ?? ""; // TODO: this is a total hack
Owner = owner;
RepositoryName = name;
OwnerIsOrganization = !String.IsNullOrWhiteSpace(owner);
var webBaseAddress = baseAddress.Host != GitHubClient.GitHubApiUrl.Host