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

Commit f288a04

Browse files
committed
Check host name is case insensative
1 parent a9de3ec commit f288a04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/GitHub.App.UnitTests/ViewModels/Dialog/Clone/RepositoryCloneViewModelTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class TheUrlProperty
2828
[TestCase("https://github.com;https://enterprise.com", null, 0)]
2929
[TestCase("https://github.com;https://enterprise.com", "https://github.com/foo/bar", 0)]
3030
[TestCase("https://github.com;https://enterprise.com", "https://enterprise.com/foo/bar", 1)]
31+
[TestCase("https://github.com;https://enterprise.com", "HTTPS://ENTERPRISE.COM/FOO/BAR", 1)]
3132
[TestCase("https://github.com;https://enterprise.com", "https://unknown.com/foo/bar", 0)]
3233
public async Task Select_Tab_For_Url(string addresses, string url, int expectTabIndex)
3334
{
@@ -43,6 +44,8 @@ public async Task Select_Tab_For_Url(string addresses, string url, int expectTab
4344
[TestCase("https://github.com;https://enterprise.com", null, "", "")]
4445
[TestCase("https://github.com;https://enterprise.com", "https://github.com/foo/bar", "https://github.com/foo/bar", "")]
4546
[TestCase("https://github.com;https://enterprise.com", "https://enterprise.com/foo/bar", "", "https://enterprise.com/foo/bar")]
47+
[TestCase("https://github.com;https://enterprise.com", "HTTPS://GITHUB.COM/FOO/BAR", "HTTPS://GITHUB.COM/FOO/BAR", "")]
48+
[TestCase("https://github.com;https://enterprise.com", "HTTPS://ENTERPRISE.COM/FOO/BAR", "", "HTTPS://ENTERPRISE.COM/FOO/BAR")]
4649
[TestCase("https://github.com;https://enterprise.com", "https://unknown.com/foo/bar", "", "")]
4750
public async Task Set_Filter_For_Url(string addresses, string url, string expectGitHubFilter, string expectEnterpriseFilter)
4851
{

0 commit comments

Comments
 (0)