Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Normalize line ending in debug tests (just in case that the files on …
Browse files Browse the repository at this point in the history
…disk use linux line endings)
  • Loading branch information
dsrbecky committed Sep 26, 2010
1 parent 69e65ac commit 4116a1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AddIns/Debugger/Debugger.Tests/DebuggerTestsBase.cs
Expand Up @@ -145,6 +145,8 @@ protected void CheckXmlOutput()
string actualXml = new StreamReader(newXmlStream).ReadToEnd() + "\r\n";

string sourceCode = GetResource(testName);
// Normalize the line endings
sourceCode = sourceCode.Replace("\r\n", "\n").Replace("\n", "\r\n");
int startIndex = sourceCode.IndexOf(startMark);
int endIndex = sourceCode.IndexOf(endMark);
if (startIndex == -1 || endIndex == -1) {
Expand Down

0 comments on commit 4116a1a

Please sign in to comment.