The test is including a newline where it shouldn't, which is causing problems when a newline is \n rather than \r\n. Simple fix: remove it. It's not necessary for the test; special characters in strings are tested elsewhere.
Commit migrated from https://github.com/dotnet/corefx/commit/c2256b78b7c38a1756be333f0a03bf58e29a0027
This ports the type model and C#/VB code generators to corefx; compilation to assemblies is currently not supported (we could potentially layer that on top of Roslyn subsequently). I also ported a bunch of tests, though there's lots of room for improvement on the test suite.
Commit migrated from https://github.com/dotnet/corefx/commit/91bc9da917d184c5579f66b4512462d8f3064b90