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 Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ActionResultsWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ActivatorWebSite Fix #2151 - Part 4 remove [Activate] support from controllers. 2015-05-21 22:57:56 -07:00
AddServicesWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
AntiForgeryWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ApiExplorerWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ApplicationModelWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
AutofacWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
BasicWebSite [Fixes #2547] Fixed attribute value prefix with dynamic content being ignored 2015-05-18 17:15:38 -07:00
BestEffortLinkGenerationWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CompositeViewEngineWebSite Split Mvc.Core 2015-06-09 02:12:13 -07:00
ContentNegotiationWebSite [Fixes #2541] Use custom stream writer for Xml output formatters 2015-05-15 12:12:11 -07:00
ControllerDiscoveryConventionsWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ControllersFromServicesClassLibrary Fix #2151 - Part 4 remove [Activate] support from controllers. 2015-05-21 22:57:56 -07:00
ControllersFromServicesWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
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 Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ErrorPageMiddlewareWebSite React to aspnet/Diagnostics#142 changes 2015-06-16 11:27:33 -07:00
FilesWebSite React to Http namespace changes. 2015-05-07 15:19:10 -07:00
FiltersWebSite React to security API changes 2015-05-12 15:12:06 -07:00
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 Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
JsonPatchWebSite Fix 2224: [Jsonpatch]Added tests for custom converters on properties 2015-05-14 17:18:42 -07:00
LocalizationWebSite Split Mvc.Core 2015-06-09 02:12:13 -07:00
LoggingWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
LowercaseUrlsWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
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 Rename _GlobalImport.cshtml files to _ViewImports.cshtml 2015-05-21 12:27:08 -07:00
RazorCompilerCacheWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RazorEmbeddedViewsWebSite A few quick cleanups 2015-05-04 11:55:24 -07:00
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 Part of #2151 - Remove [Activate] from TagHelpers 2015-05-21 22:57:51 -07:00
ResponseCacheWebSite Split Mvc.Core 2015-06-09 02:12:13 -07:00
RoutingWebSite Part 1 of fix for #2248 - Ambiguity when inheriting attribute routes 2015-05-08 17:05:45 -07:00
TagHelpersWebSite Part of #2151 - Remove [Activate] from TagHelpers 2015-05-21 22:57:51 -07:00
TempDataWebSite React to Session api review changes 2015-06-08 09:44:05 -07:00
UrlHelperWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
UserClassLibrary Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ValidationWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ValueProvidersWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
VersioningWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ViewComponentWebSite Rename _GlobalImport.cshtml files to _ViewImports.cshtml 2015-05-21 12:27:08 -07:00
WebApiCompatShimWebSite [Fixes #2545] RedirectToRouteResult doesn't use RouteName property when calculating destination URL 2015-05-13 12:35:25 -07:00
XmlFormattersWebSite Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00