aspnetcore/test/Microsoft.AspNet.Mvc.Razor....
Doug Bunting 9c63d1d842 Get tests working with `core.autocrlf=false`
- #1514
- refactor `RazorCompilationService` to allow a test subclass that normalizes Razor file line endings
 - add `TestRazorCompilationService` to `RazorPageExecutionInstrumentationWebSite`
 - adjust line endings to match in `RazorPageExecutionInstrumentationTest`
- add `ignoreLineEndingDifferences: true` to `Assert.Equal()` calls
 - responses on Windows can have a mix of line endings
  - `git config` setting affects line endings in .cshtml (and baseline) files
  - however MVC and Razor mix `Environment.NewLine`s into HTTP responses
- update `PrecompilationTest` to split response regardless of line endings
- update `ResourceFile` to normalize all source file streams to LF only
 - ensures consistent checksums and line mappings
 - change `MvcRazorHostTest` to expect new line mappings
 - recreate baseline files to expect new checksums and literal line endings
- use verbatim strings in affected tests
 - careful use of `Environment.NewLine` in expectations is now just noise

nits:
- add doc comments in `RazorCompilationService`
- correct `TagHelpersTest` name to match containing file
- avoid incorrect `using` removal when `GENERATE_BASELINES` is not defined
- remove unnecessary `ResourceFile` normalization of output files
2015-06-24 14:53:07 -07:00
..
Directives Update names and spacing of some missed ChunkTree renames. 2015-05-29 23:07:55 -07:00
Properties Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
SpanFactory React to aspnet/Razor#140 2015-05-29 14:21:35 -07:00
TestFiles Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
InjectChunkVisitorTest.cs React to aspnet/Razor#140 2015-05-29 14:21:35 -07:00
InputTestTagHelper.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
Microsoft.AspNet.Mvc.Razor.Host.Test.xproj Add a few more `<Service/>` items 2015-04-02 22:55:21 -07:00
ModelChunkVisitorTest.cs React to aspnet/Razor#140 2015-05-29 14:21:35 -07:00
MvcCSharpRazorCodeParserTest.cs React to aspnet/Razor#140 2015-05-29 14:21:35 -07:00
MvcRazorHostTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
MvcRazorParserTest.cs React to aspnet/Razor#140 2015-05-29 14:21:35 -07:00
MvcTagHelperAttributeValueCodeRendererTest.cs React to aspnet/Razor#140 2015-05-29 14:21:35 -07:00
StringTextBuffer.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ViewHierarchyUtilityTest.cs Rename _GlobalImport.cshtml files to _ViewImports.cshtml 2015-05-21 12:27:08 -07:00
project.json Split Mvc.Core 2015-06-09 02:12:13 -07:00