aspnetcore/test/Microsoft.AspNet.Mvc.Extens...
Doug Bunting 27283ec098 Make `string`-based expression evaluations behave consistently
- #1485, #1487
 - handle `TemplateInfo.HtmlFieldPrefix` in `ViewDataEvaluator.Eval()`
  - attempt lookup in the `ViewDataDictionary` using full name then evaluate
    relative `expression` against `viewData.Model`
  - handle `null` or empty `expression` special case in this method (remove `throw`s)
 - always pass relative `expression` name into `Eval()`
  - remove `null` or empty `expression` handling from higher-level code
  - in a couple of cases, special-case returned `ViewDataInfo`
- #2662
 - remove incorrect guard from `DefaultHtmlGenerator.GenerateRadioButtion()`
- add doc comments for the core methods that have changed
- enable unit tests skipped due to one of above bugs
 - fix one (yeah, just one) other test with incorrect expectations
- remove functional test comments about the above bugs and update expectations

nits:
- move some comments describing `ViewDataEvaluator` methods above the methods
2015-06-16 21:54:56 -07:00
..
AntiXsrf Split Mvc.Core 2015-06-09 02:12:13 -07:00
Authorization Split Mvc.Core 2015-06-09 02:12:13 -07:00
Cors Split Mvc.Core 2015-06-09 02:12:13 -07:00
ModelBinding Split Mvc.Core 2015-06-09 02:12:13 -07:00
Properties Split Mvc.Core 2015-06-09 02:12:13 -07:00
Rendering Make `string`-based expression evaluations behave consistently 2015-06-16 21:54:56 -07:00
TestFiles Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewComponents Split Mvc.Core 2015-06-09 02:12:13 -07:00
ActionFilterAttributeTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
BadRequestObjectResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
BadRequestResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ChallengeResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ConsumesAttributeTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ContentResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ControllerTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ControllerUnitTestabilityTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
CreatedAtActionResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
CreatedAtRouteResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
CreatedResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
EmptyResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FileContentResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FilePathResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FileResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FileStreamResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FormatFilterTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
FormatterMappingsTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
HttpNotFoundObjectResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
HttpNotFoundResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
HttpStatusCodeResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
HttpUnauthorizedResultTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
JsonInputFormatterTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
JsonOutputFormatterTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
JsonPatchInputFormatterTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
JsonResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
Microsoft.AspNet.Mvc.Extensions.Test.xproj Split Mvc.Core 2015-06-09 02:12:13 -07:00
MockAuthorizationOptionsAccessor.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
MockMvcOptionsAccessor.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
MockMvcViewOptionsAccessor.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
MvcCacheOptionsTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
PartialViewResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ProducesAttributeTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RedirectResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RedirectToActionResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RedirectToRouteResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RemoteAttributeTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
RequireHttpsAttributeTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
Resources.resx Split Mvc.Core 2015-06-09 02:12:13 -07:00
ResponseCacheAttributeTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ResponseCacheFilterTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ResultFilterAttributeTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
SerializableErrorTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ServiceBasedControllerActivatorTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
SkipStatusCodePagesAttributeTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewComponentTests.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewDataDictionaryOfTModelTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewDataDictionaryTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewEngineDescriptorExtensionsTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewEngineDescriptorTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewExecutorTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
ViewResultTest.cs Split Mvc.Core 2015-06-09 02:12:13 -07:00
project.json Split Mvc.Core 2015-06-09 02:12:13 -07:00