Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 88ca0ad

Browse files
authored
Merge pull request #416 from github-for-unity/enhancements/ssh-support
Parsing SSH Uri's Test
2 parents 9f02563 + 6e6f01b commit 88ca0ad

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/tests/UnitTests/IO/RemoteListOutputProcessorTests.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,27 @@ public void ShouldParseSingleHttpsBothWaysRemote()
2828
});
2929
}
3030

31+
[Test]
32+
public void ShouldParseSingleSshBothWaysRemote()
33+
{
34+
var output = new[]
35+
{
36+
"origin [email protected]:github-for-unity/Unity.git (fetch)",
37+
"origin [email protected]:github-for-unity/Unity.git (push)",
38+
null
39+
};
40+
41+
var name = "origin";
42+
var host = "github.com";
43+
var url = "github.com:github-for-unity/Unity.git";
44+
var function = GitRemoteFunction.Both;
45+
var user = "git";
46+
AssertProcessOutput(output, new[]
47+
{
48+
new GitRemote(name, host, url, function, user)
49+
});
50+
}
51+
3152
[Test]
3253
public void ShouldParseSingleHttpsFetchOnlyRemote()
3354
{

0 commit comments

Comments
 (0)