This repository was archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #605 from whoisj/create-1.15.2
Prepare v1.15.2
- Loading branch information
Showing
4 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ public void EmailAsUserName() | |
var input = new InputArg | ||
{ | ||
Host = "example.visualstudio.com", | ||
Password = "ḭncorrect", | ||
Password = "incorrect", | ||
Path = "path", | ||
Protocol = Uri.UriSchemeHttps, | ||
Username = "[email protected]" | ||
|
@@ -121,6 +121,34 @@ public void EmailAsUserName() | |
Assert.Equal(expected, actual, StringComparer.Ordinal); | ||
} | ||
|
||
[Fact] | ||
public void UsernameWithDomain() | ||
{ | ||
var input = new InputArg | ||
{ | ||
Host = "example.visualstudio.com", | ||
Password = "incorrect", | ||
Path = "path", | ||
Protocol = Uri.UriSchemeHttps, | ||
Username = @"DOMAIN\username" | ||
}; | ||
|
||
OperationArguments cut; | ||
using (var memory = new MemoryStream()) | ||
using (var writer = new StreamWriter(memory)) | ||
{ | ||
writer.Write(input.ToString()); | ||
writer.Flush(); | ||
|
||
memory.Seek(0, SeekOrigin.Begin); | ||
|
||
cut = new OperationArguments(memory); | ||
} | ||
|
||
Assert.Equal(@"https://DOMAIN\[email protected]/path", cut.TargetUri.ToString(), StringComparer.Ordinal); | ||
Assert.Equal(input.ToString(), cut.ToString(), StringComparer.Ordinal); | ||
} | ||
|
||
[Fact] | ||
public void CreateTargetUriGitHubSimple() | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters