Fix test expectation to match message change

This commit is contained in:
Nick Guerrera 2019-10-18 15:10:51 -07:00
parent 39b07f54dd
commit 9cfc62b65f

View file

@ -36,9 +36,9 @@ namespace EndToEnd.Tests
var runCommand = new RunCommand() var runCommand = new RunCommand()
.WithWorkingDirectory(projectDirectory) .WithWorkingDirectory(projectDirectory)
.ExecuteWithCapturedOutput() .ExecuteWithCapturedOutput()
// Templates are still at 3.0 and will not run on 5.0, revert to commented out assertion when 5.0 templates land // Templates are still at 3.1 and will not run on 5.0, revert to commented out assertion when 5.0 templates land
//.Should().Pass().And.HaveStdOutContaining("Hello World!"); //.Should().Pass().And.HaveStdOutContaining("Hello World!");
.Should().Fail().And.HaveStdErrContaining("https://aka.ms/dotnet-download"); .Should().Fail().And.HaveStdErrContaining("https://aka.ms/dotnet-core-applaunch");
var binDirectory = new DirectoryInfo(projectDirectory).Sub("bin"); var binDirectory = new DirectoryInfo(projectDirectory).Sub("bin");
binDirectory.Should().HaveFilesMatching("*.dll", SearchOption.AllDirectories); binDirectory.Should().HaveFilesMatching("*.dll", SearchOption.AllDirectories);
@ -80,9 +80,9 @@ namespace EndToEnd.Tests
var runCommand = new RunCommand() var runCommand = new RunCommand()
.WithWorkingDirectory(projectDirectory) .WithWorkingDirectory(projectDirectory)
.ExecuteWithCapturedOutput() .ExecuteWithCapturedOutput()
// Templates are still at 3.0 and will not run on 5.0, revert to commented out assertion when 5.0 templates land // Templates are still at 3.1 and will not run on 5.0, revert to commented out assertion when 5.0 templates land
//.Should().Pass().And.HaveStdOutContaining("Hello World!"); //.Should().Pass().And.HaveStdOutContaining("Hello World!");
.Should().Fail().And.HaveStdErrContaining("https://aka.ms/dotnet-download"); .Should().Fail().And.HaveStdErrContaining("https://aka.ms/dotnet-core-applaunch");
} }