Correct test failures on Windows with `git config core.autocrlf false`

- line endings in checked-out files do not necessarily match `Environment.NewLine`
This commit is contained in:
Doug Bunting 2016-09-03 13:47:06 -07:00
parent 4677bf13fa
commit 755b702823
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ Write says:WriteLiteral says:<strong>Write says:98052WriteLiteral says:</strong>
var body = await Client.GetStringAsync("Directives/ViewReplacesTModelTokenFromInheritedBasePages"); var body = await Client.GetStringAsync("Directives/ViewReplacesTModelTokenFromInheritedBasePages");
// Assert // Assert
Assert.Equal(expected, body.Trim()); Assert.Equal(expected, body.Trim(), ignoreLineEndingDifferences: true);
} }
} }
} }

View File

@ -496,7 +496,7 @@ Products: Music Systems, Televisions (3)";
var response = await Client.GetStringAsync("http://localhost/HtmlGeneration_Home/ItemUsingSharedEditorTemplate"); var response = await Client.GetStringAsync("http://localhost/HtmlGeneration_Home/ItemUsingSharedEditorTemplate");
// Assert // Assert
Assert.Equal(expected, response); Assert.Equal(expected, response, ignoreLineEndingDifferences: true);
} }
[Fact] [Fact]
@ -510,7 +510,7 @@ Products: Music Systems, Televisions (3)";
var response = await Client.GetStringAsync("http://localhost/HtmlGeneration_Home/ItemUsingModelSpecificEditorTemplate"); var response = await Client.GetStringAsync("http://localhost/HtmlGeneration_Home/ItemUsingModelSpecificEditorTemplate");
// Assert // Assert
Assert.Equal(expected, response); Assert.Equal(expected, response, ignoreLineEndingDifferences: true);
} }
private static HttpRequestMessage RequestWithLocale(string url, string locale) private static HttpRequestMessage RequestWithLocale(string url, string locale)