diff --git a/TestAssets/TestProjects/TestAppWithUnicodéPath/Program.cs b/TestAssets/TestProjects/TestAppWithUnicodéPath/Program.cs index 51233cffa..dcdd3eaa1 100644 --- a/TestAssets/TestProjects/TestAppWithUnicodéPath/Program.cs +++ b/TestAssets/TestProjects/TestAppWithUnicodéPath/Program.cs @@ -6,7 +6,7 @@ namespace ConsoleApplication { public static void Main(string[] args) { - Console.WriteLine("Hello World!"); + Console.WriteLine("Hélló Wórld!"); } } } diff --git a/test/dotnet-run.Tests/RunTests.cs b/test/dotnet-run.Tests/RunTests.cs index b41ecce8b..41de0dd2e 100644 --- a/test/dotnet-run.Tests/RunTests.cs +++ b/test/dotnet-run.Tests/RunTests.cs @@ -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) {