From c60abb0d0ad2be238bb14db5ae5405e7023c5dd0 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Mon, 25 Apr 2016 11:04:23 -0500 Subject: [PATCH] Adding a dotnet run test that outputs unicode characters. --- .../TestProjects/TestAppWithUnicodéPath/Program.cs | 2 +- test/dotnet-run.Tests/RunTests.cs | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) 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) {