Adding a dotnet run test that outputs unicode characters.
This commit is contained in:
parent
7a7b524b34
commit
c60abb0d0a
2 changed files with 14 additions and 1 deletions
|
@ -6,7 +6,7 @@ namespace ConsoleApplication
|
|||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello World!");
|
||||
Console.WriteLine("Hélló Wórld!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,6 +68,19 @@ namespace Microsoft.DotNet.Tools.Run.Tests
|
|||
new RunCommand(instance.TestRoot).Execute().Should().Pass();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ItRunsAppsThatOutputUnicodeCharacters()
|
||||
{
|
||||
TestInstance instance = TestAssetsManager.CreateTestInstance("TestAppWithUnicodéPath")
|
||||
.WithLockFiles()
|
||||
.WithBuildArtifacts();
|
||||
new RunCommand(instance.TestRoot)
|
||||
.ExecuteWithCapturedOutput()
|
||||
.Should()
|
||||
.Pass()
|
||||
.And
|
||||
.HaveStdOutContaining("Hélló Wórld!");
|
||||
}
|
||||
|
||||
private void CopyProjectToTempDir(string projectDir, TempDirectory tempDir)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue