Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit e2c766b

Browse files
Adding a quick test
1 parent 3586304 commit e2c766b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/GitHub.App.UnitTests/Services/PullRequestServiceTests.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,19 @@ public async Task ShouldReturnPullRequestBranchForPullRequestFromSameRepositoryA
899899
Assert.That("source", Is.EqualTo(result.Name));
900900
}
901901

902+
[Test]
903+
public async Task ShouldReturnPullRequestBranchForPullRequestFromSameRepositoryOwnerCaseMismatchAsync()
904+
{
905+
var service = CreateTarget(MockGitClient(), MockGitService());
906+
907+
var localRepo = Substitute.For<ILocalRepositoryModel>();
908+
localRepo.CloneUrl.Returns(new UriString("https://github.com/Foo/bar"));
909+
910+
var result = await service.GetLocalBranches(localRepo, CreatePullRequest(fromFork: false));
911+
912+
Assert.That("source", Is.EqualTo(result.Name));
913+
}
914+
902915
[Test]
903916
public async Task ShouldReturnMarkedBranchForPullRequestFromForkAsync()
904917
{

0 commit comments

Comments
 (0)