Adding a dotnet run test that outputs unicode characters.

This commit is contained in:
Eric Erhardt 2016-04-25 11:04:23 -05:00
parent 7a7b524b34
commit c60abb0d0a
2 changed files with 14 additions and 1 deletions

View file

@ -6,7 +6,7 @@ namespace ConsoleApplication
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.WriteLine("Hélló Wórld!");
}
}
}

View file

@ -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)
{