aspnetcore/test/WebSites
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
..
ActionConstraintsWebSite
…
ActionResultsWebSite
…
ActivatorWebSite
…
AddServicesWebSite
…
AntiForgeryWebSite
…
ApiExplorerWebSite
…
ApplicationModelWebSite
…
AutofacWebSite
…
BasicWebSite
…
BestEffortLinkGenerationWebSite
…
CompositeViewEngineWebSite Split Mvc.Core 2015-06-09 02:12:13 -07:00
ContentNegotiationWebSite
…
ControllerDiscoveryConventionsWebSite
…
ControllersFromServicesClassLibrary
…
ControllersFromServicesWebSite
…
CorsMiddlewareWebSite Removed unnecessary cors dependency 2015-06-16 10:25:25 -07:00
CorsWebSite Removed unnecessary cors dependency 2015-06-16 10:25:25 -07:00
CustomRouteWebSite
…
ErrorPageMiddlewareWebSite React to aspnet/Diagnostics#142 changes 2015-06-16 11:27:33 -07:00
FilesWebSite
…
FiltersWebSite
…
FormatFilterWebSite Split Mvc.Core 2015-06-09 02:12:13 -07:00
FormatterWebSite Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
HtmlGenerationWebSite Make `string`-based expression evaluations behave consistently 2015-06-16 21:54:56 -07:00
InlineConstraintsWebSite
…
JsonPatchWebSite
…
LocalizationWebSite Split Mvc.Core 2015-06-09 02:12:13 -07:00
LoggingWebSite
…
LowercaseUrlsWebSite
…
Microsoft.AspNet.Mvc.TestConfiguration React to HttpResponse.HeadersSent rename. 2015-06-15 18:29:20 -07:00
ModelBindingWebSite Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
PrecompilationWebSite
…
RazorCompilerCacheWebSite
…
RazorEmbeddedViewsWebSite
…
RazorPageExecutionInstrumentationWebSite Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
RazorWebSite Split Mvc.Core 2015-06-09 02:12:13 -07:00
RequestServicesWebSite
…
ResponseCacheWebSite Split Mvc.Core 2015-06-09 02:12:13 -07:00
RoutingWebSite
…
TagHelpersWebSite
…
TempDataWebSite
…
UrlHelperWebSite
…
UserClassLibrary
…
ValidationWebSite
…
ValueProvidersWebSite
…
VersioningWebSite
…
ViewComponentWebSite
…
WebApiCompatShimWebSite
…
XmlFormattersWebSite
…