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
AntiForgeryTestHelper.cs
AntiForgeryTests.cs
ApiExplorerTest.cs
ApplicationModelTest.cs
BasicTests.cs
BestEffortLinkGenerationTest.cs
CompilationOptionsTests.cs
CompositeViewEngineTests.cs
ConsumesAttributeTests.cs
ContentNegotiationTest.cs
ControllerDiscoveryConventionTests.cs
ControllerFromServicesTests.cs
CorsMiddlewareTests.cs
CorsTests.cs
CustomRouteTest.cs
CustomUrlHelperTests.cs
DefaultOrderTest.cs
DefaultValuesTest.cs
DependencyResolverTests.cs
DirectivesTest.cs
ErrorPageTests.cs
ExceptionInfo.cs
FileResultTests.cs
FiltersTest.cs
FlushPointTest.cs
FormatFilterTest.cs
HtmlGenerationTest.cs
HtmlHelperOptionsTest.cs
HttpResponseMessageExceptions.cs
InlineConstraintTests.cs
InputFormatterTests.cs
InputObjectValidationTests.cs
JsonOutputFormatterTests.cs
JsonPatchTest.cs
JsonResultTest.cs
LinkGenerationTests.cs
LocalizationTest.cs
Microsoft.AspNet.Mvc.FunctionalTests.xproj
ModelBindingBindingBehaviorTest.cs
ModelBindingDataMemberRequiredTest.cs
ModelBindingFromFormTest.cs
ModelBindingFromHeaderTest.cs
ModelBindingFromQueryTest.cs
ModelBindingFromRouteTest.cs
ModelBindingModelBinderAttributeTest.cs
ModelBindingTest.cs
ModelMetadataAttributeTest.cs
MvcSampleTests.cs
MvcStartupTests.cs
OutputFormatterTest.cs
PrecompilationTest.cs
RazorCompilerCacheTest.cs
RazorEmbeddedViewsTest.cs
RazorFileSystemCaseSensitivityTest.cs
RazorPageExecutionInstrumentationTest.cs
RazorViewLocationSpecificationTest.cs
RemoteAttributeValidationTest.cs
RequestServicesTest.cs
RespectBrowserAcceptHeaderTests.cs
ResponseCacheTest.cs
RoundTripTests.cs
RouteDataTest.cs
RoutingLowercaseUrlTest.cs
RoutingTests.cs
SerializableErrorTests.cs
StreamOutputFormatterTest.cs
TagHelperSampleTest.cs
TagHelpersTest.cs
TempDataTest.cs
TestApplicationEnvironment.cs
TestHelper.cs
TryValidateModelTest.cs
ValueProviderTest.cs
VersioningTests.cs
ViewComponentTests.cs
ViewEngineTests.cs
WebApiCompatShimActionResultTest.cs
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs
WebApiCompatShimParameterBindingTest.cs
XmlDataContractSerializerFormattersWrappingTest.cs
XmlDataContractSerializerInputFormatterTest.cs
XmlOutputFormatterTests.cs
XmlSerializerFormattersWrappingTest.cs
XmlSerializerInputFormatterTests.cs
project.json