aspnetcore/test
Doug Bunting d03a851ab3 Use `MvcTextFixture` as much as possible
- #3066
  - reduce `TestServer` -> `PhysicalFileProvider` -> `FileSystemWatcher` count enough to run with Core CLR on Linux
- remove use of `HttpClient.DefaultRequestHeaders`; any client change affects other tests
- remove use of `RequestBuilder` class; creates a per-test `HttpClient` and requires the `TestServer`
- updated a few expectations because `CommonTestEncoder` does JavaScript a bit differently
  - "JavaScriptEncode[[...]]" -> "JavaScriptStringEncode[[...]]"
- side benefit: xUnit reports functional tests execute for only ~12.4s; was >30s before this change

Infrastructure: Enhance `MvcTestFixture`
- handle `ConfigureServices()` methods that are not `void`
- handle `Configure(IApplicationBuilder, ILoggerFactory)`
- ensure server is initialized with consistent `CurrentCulture` and `CurrentUICulture`
- add `FilteredDefaultAssemblyProviderFixture<TStartup>` and `MvcEncodedTestFixture<TStartup>`
  - add `MvcTextFixture.AddAdditionalServices()` extension point supporting these

- do not expose the `TestServer`; an anti-pattern for tests to manipulate the server
- update class names to match containing files
- use existing `TestApplicationEnvironment`
  - apply some `MvcTestFixture` improvements to the shared `TestApplicationEnvironment` class
- remove unused methods from `TestHelper`

nits:
- touched-up some leftover `_app` &c declarations to be more explicit and minimize `using`s
- moved statements into correct sections of methods in `RoutingTests`
- removed `TestLoggerFactory` and related classes from `TagHelperSampleTest`
2015-09-15 10:18:27 -07:00
..
Microsoft.AspNet.JsonPatch.Test Implement Replace Move and Copy for dynamic objects 2015-09-08 22:09:44 -07:00
Microsoft.AspNet.Mvc.Abstractions.Test
Microsoft.AspNet.Mvc.ApiExplorer.Test
Microsoft.AspNet.Mvc.Core.Test Remove use of `IsMono` to no-op a test 2015-09-10 11:55:51 -07:00
Microsoft.AspNet.Mvc.Cors.Test
Microsoft.AspNet.Mvc.DataAnnotations.Test Remove use of `IsMono` to no-op a test 2015-09-10 11:55:51 -07:00
Microsoft.AspNet.Mvc.Formatters.Json.Test
Microsoft.AspNet.Mvc.Formatters.Xml.Test Remove use of `IsMono` to no-op a test 2015-09-10 11:55:51 -07:00
Microsoft.AspNet.Mvc.FunctionalTests Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
Microsoft.AspNet.Mvc.IntegrationTests Optimize async code in model binders 2015-09-08 09:42:34 -07:00
Microsoft.AspNet.Mvc.Localization.Test Do not execute no-op tests 2015-09-14 15:30:45 -07:00
Microsoft.AspNet.Mvc.Razor.Host.Test
Microsoft.AspNet.Mvc.Razor.Test Throw an exception if layouts have circular references. 2015-09-14 12:57:06 -07:00
Microsoft.AspNet.Mvc.TagHelpers.Test React to BufferedHtmlContent changes 2015-09-13 13:51:53 -07:00
Microsoft.AspNet.Mvc.Test
Microsoft.AspNet.Mvc.TestCommon Use TelemetrySource 2015-09-06 20:23:05 -07:00
Microsoft.AspNet.Mvc.TestTelemetryListener.Sources Use TelemetrySource 2015-09-06 20:23:05 -07:00
Microsoft.AspNet.Mvc.ViewFeatures.Test React to BufferedHtmlContent changes 2015-09-13 13:51:53 -07:00
Microsoft.AspNet.Mvc.WebApiCompatShimTest Remove use of `IsMono` to no-op a test 2015-09-10 11:55:51 -07:00
WebSites React to Cors api changes 2015-09-14 11:21:40 -07:00