aspnetcore/test/Microsoft.AspNet.Razor.Test/Generator
Doug Bunting 60c47c8874 Add `[HtmlAttributeName(..., DictionaryAttributePrefix="prefix")]` part III
- #89 remainder
- support adding attributes (that aren't otherwise bound) to a tag helper dictionary
- use two `TagHelperAttributeDescriptor`s for dictionary and indexer
 - most exising descriptor properties have two meanings depending on new `IsIndexer`
 - add `TagHelperAttributeDescriptor.IsNameMatch()`
- create no `TagHelperAttributeDescriptor`s if property name or `HtmlAttributeNameAttribute`
  is invalid
 - avoid corner case misfeatures where invalidity removes just one descriptor
- extend handling of invalid attribute names to include `[HtmlAttributeName]`
- handle prefix matches in `TagHelperBlockRewriter`
 - add parse error when resolved dictionary key is `string.Empty`
- generate code for indexer property assignments
 - add code generation for runtime error if using indexer when property is `null`
 - use new `GeneratedTagHelperContext.FormatInvalidIndexerAssignmentMethodName` for message
- code generation now handles attributes in source order; thus above errors occur only when
  expected if dictionary is also initialized in the Razor source
 - surprisingly generation order change did not break existing tests!

nits:
- improve `TagHelperDescriptorFactory_InvalidBoundAttributeName` wording
 - rename resource to `TagHelperDescriptorFactory_InvalidAttributeNameOrPrefixStart`
- correct order of arguments to `FormatTagHelperDescriptorFactory_InvalidBoundAttributeName`
- correct `TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed` resource
- correct `TagHelperDescriptorFactoryTest` test names
 - remove a few unnecessary `ToArray()` calls
- update `TagHelperAttributeDescriptorComparer` comments
2015-05-20 22:01:00 -07:00
..
CodeTree Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
Compiler Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
AddImportCodeGeneratorTest.cs Remove unneeded NamespaceKeywordLength from AddImportCodeGenerator. 2015-05-18 17:21:50 -07:00
AttributeBlockCodeGeneratorTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
CSharpRazorCodeGeneratorTest.cs Add support for static usings. 2015-05-20 21:47:23 -07:00
CSharpTagHelperRenderingTest.cs Add `[HtmlAttributeName(..., DictionaryAttributePrefix="prefix")]` part III 2015-05-20 22:01:00 -07:00
CSharpTagHelperRenderingUnitTest.cs Address a round of nits 2015-05-19 17:39:26 -07:00
CodeGenTestCodeBuilder.cs Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
CodeGenTestHost.cs Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
DynamicAttributeBlockCodeGeneratorTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
LineMappingTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
RazorCodeGeneratorTest.cs [Fixes #379] Ignoring whitespace at the end of text tag 2015-05-19 17:21:28 -07:00
RazorCommentCodeGeneratorTest.cs Remove unneeded NamespaceKeywordLength from AddImportCodeGenerator. 2015-05-18 17:21:50 -07:00
TabTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
TagHelperAttributeValueCodeRendererTest.cs Address a round of nits 2015-05-19 17:39:26 -07:00
TagHelperTestBase.cs Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
TestSpan.cs Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00