Skip to content

Commit

Permalink
applying suggestions from review
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpopMSFT authored Jul 7, 2023
1 parent d67b02e commit 2fd7244
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1059,17 +1059,18 @@ static void Main(string[] args)
#endif
}
}";
var testAsset = _testAssetsManager.CreateTestProject(testProj);
var testAsset = _testAssetsManager.CreateTestProject(testProj, identifier: disableTracing.ToString());

var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.Path, testProj.Name));
buildCommand
.Execute()
.Should()
.Pass();

var runCommand = new RunExeCommand(Log, Path.Combine(buildCommand.GetOutputDirectory(ToolsetInfo.CurrentTargetFramework).FullName, $"{testProj.Name}.exe"));
var stdOut = runCommand.Execute().StdOut;
stdOut.Should().BeEquivalentTo(expectedOutput);
var runCommand = new RunExeCommand(Log, Path.Combine(buildCommand.GetOutputDirectory(ToolsetInfo.CurrentTargetFramework).FullName, $"{testProj.Name}{EnvironmentInfo.ExecutableExtension}"));
runCommand
.Execute().
.Should().HaveStdOut(expectedOutput);
}
}
}

0 comments on commit 2fd7244

Please sign in to comment.