Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Oct 31, 2019
1 parent 765a615 commit 1b20ea5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Microsoft.Build.Tasks.Git.UnitTests/GitRepositoryTests.cs
Expand Up @@ -198,11 +198,11 @@ public void Submodules_Errors()
path = "" ""
url = http://github.com
[submodule ""S2""] # empty path
[submodule ""S2a""] # empty path
path =
url = http://github.com
[submodule ""S4""] # invalid path
[submodule ""S2b""] # invalid path
path = sub<>
url = http://github.com
Expand Down Expand Up @@ -257,8 +257,10 @@ public void Submodules_Errors()
{
// The path of submodule 'S1' is missing or invalid: ' '
string.Format(Resources.InvalidSubmodulePath, "S1", " "),
// The path of submodule 'S2' is missing or invalid: ''
string.Format(Resources.InvalidSubmodulePath, "S2", ""),
// The path of submodule 'S2a' is missing or invalid: ''
string.Format(Resources.InvalidSubmodulePath, "S2a", ""),
// The path of submodule 'S2b' is missing or invalid: ''
string.Format(Resources.InvalidSubmodulePath, "S2b", "sub<>"),
// Could not find a part of the path 'sub3\.git'.
TestUtilities.GetExceptionMessage(() => File.ReadAllText(Path.Combine(workingDir.Path, "sub3", ".git"))),
// The URL of submodule 'S4' is missing or invalid: ' '
Expand Down

0 comments on commit 1b20ea5

Please sign in to comment.