binding redirects tests: Simplify and get ready for enabling (#4692)
* binding redirects tests: Simplify and get ready for enabling * fix targets broken during cleanup * fix non-windows build * apply pr feedback: remove some not needed code * remigrate BindingRedirects samples, add x64 to bind redir proj
This commit is contained in:
parent
6d57ca7e14
commit
9212605e89
22 changed files with 363 additions and 387 deletions
|
@ -69,9 +69,10 @@ Configuring...
|
|||
-------------------
|
||||
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.";
|
||||
|
||||
_firstDotnetVerbUseCommandResult.StdOut
|
||||
// normalizing line endings as git is occasionally replacing line endings in this file causing this test to fail
|
||||
NormalizeLineEndings(_firstDotnetVerbUseCommandResult.StdOut)
|
||||
.Should()
|
||||
.StartWith(firstTimeUseWelcomeMessage);
|
||||
.StartWith(NormalizeLineEndings(firstTimeUseWelcomeMessage));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -95,5 +96,10 @@ A command is running to initially populate your local package cache, to improve
|
|||
return new DotnetCommand().ExecuteWithCapturedOutput("--version").StdOut
|
||||
.TrimEnd(Environment.NewLine.ToCharArray());
|
||||
}
|
||||
|
||||
private static string NormalizeLineEndings(string s)
|
||||
{
|
||||
return s.Replace("\r\n", "\n").Replace("\r", "\n");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue