aspnetcore/test/Microsoft.AspNet.Mvc.Functi...
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
..
Logging
compiler/resources
ActionResultTests.cs
ActivatorTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
AntiForgeryTestHelper.cs
AntiForgeryTests.cs
ApiExplorerTest.cs
ApplicationModelTest.cs
BasicTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
BestEffortLinkGenerationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
CompilationOptionsTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
CompositeViewEngineTests.cs
ConsumesAttributeTests.cs
ContentNegotiationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
ControllerDiscoveryConventionTests.cs
ControllerFromServicesTests.cs
CorsMiddlewareTests.cs
CorsTests.cs Fixing Tests 2015-06-24 09:56:31 -07:00
CustomRouteTest.cs
CustomUrlHelperTests.cs
DefaultOrderTest.cs
DefaultValuesTest.cs
DependencyResolverTests.cs
DirectivesTest.cs
ErrorPageTests.cs
ExceptionInfo.cs
FileResultTests.cs
FiltersTest.cs
FlushPointTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
FormatFilterTest.cs
HtmlGenerationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
HtmlHelperOptionsTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
HttpResponseMessageExceptions.cs
InlineConstraintTests.cs
InputFormatterTests.cs
InputObjectValidationTests.cs Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
JsonOutputFormatterTests.cs
JsonPatchTest.cs
JsonResultTest.cs [Fixes #2506] Added overload to Controller.Json to accept JsonSerializerSettings 2015-05-11 12:36:45 -07:00
LinkGenerationTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
LocalizationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
Microsoft.AspNet.Mvc.FunctionalTests.xproj
ModelBindingBindingBehaviorTest.cs
ModelBindingDataMemberRequiredTest.cs
ModelBindingFromFormTest.cs
ModelBindingFromHeaderTest.cs
ModelBindingFromQueryTest.cs
ModelBindingFromRouteTest.cs
ModelBindingModelBinderAttributeTest.cs
ModelBindingTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
ModelMetadataAttributeTest.cs
MvcSampleTests.cs
MvcStartupTests.cs
OutputFormatterTest.cs
PrecompilationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
RazorCompilerCacheTest.cs
RazorEmbeddedViewsTest.cs
RazorFileSystemCaseSensitivityTest.cs
RazorPageExecutionInstrumentationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
RazorViewLocationSpecificationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
RemoteAttributeValidationTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
RequestServicesTest.cs
RespectBrowserAcceptHeaderTests.cs
ResponseCacheTest.cs
RoundTripTests.cs
RouteDataTest.cs
RoutingLowercaseUrlTest.cs
RoutingTests.cs
SerializableErrorTests.cs
StreamOutputFormatterTest.cs
TagHelperSampleTest.cs
TagHelpersTest.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
TempDataTest.cs
TestApplicationEnvironment.cs
TestHelper.cs
TryValidateModelTest.cs
ValueProviderTest.cs
VersioningTests.cs
ViewComponentTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
ViewEngineTests.cs Get tests working with `core.autocrlf=false` 2015-06-24 14:53:07 -07:00
WebApiCompatShimActionResultTest.cs
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs
WebApiCompatShimParameterBindingTest.cs
XmlDataContractSerializerFormattersWrappingTest.cs
XmlDataContractSerializerInputFormatterTest.cs Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
XmlOutputFormatterTests.cs
XmlSerializerFormattersWrappingTest.cs
XmlSerializerInputFormatterTests.cs Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
project.json