React to aspnet/Razor#309.
- Type and property names changed for a core type that we override, AddOrRemoveTagHelperSpanVisitor => TagHelperDirectiveSpanVisitor.
This commit is contained in:
parent
46aaf790c4
commit
bc0ac4d0ea
|
|
@ -89,7 +89,7 @@ namespace Microsoft.AspNet.Mvc.Razor
|
||||||
return descriptors;
|
return descriptors;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ViewStartAddRemoveTagHelperVisitor : AddOrRemoveTagHelperSpanVisitor
|
private class ViewStartAddRemoveTagHelperVisitor : TagHelperDirectiveSpanVisitor
|
||||||
{
|
{
|
||||||
private readonly IEnumerable<TagHelperDirectiveDescriptor> _viewStartDirectiveDescriptors;
|
private readonly IEnumerable<TagHelperDirectiveDescriptor> _viewStartDirectiveDescriptors;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,10 @@ namespace Microsoft.AspNet.Mvc.Razor
|
||||||
Assert.NotNull(descriptors);
|
Assert.NotNull(descriptors);
|
||||||
Assert.Equal(2, descriptors.Count);
|
Assert.Equal(2, descriptors.Count);
|
||||||
|
|
||||||
Assert.Equal("Remove Tag Helper", descriptors[0].LookupText);
|
Assert.Equal("Remove Tag Helper", descriptors[0].DirectiveText);
|
||||||
Assert.Equal(SourceLocation.Undefined, descriptors[0].Location);
|
Assert.Equal(SourceLocation.Undefined, descriptors[0].Location);
|
||||||
|
|
||||||
Assert.Equal("Add Tag Helper", descriptors[1].LookupText);
|
Assert.Equal("Add Tag Helper", descriptors[1].DirectiveText);
|
||||||
Assert.Equal(TagHelperDirectiveType.AddTagHelper, descriptors[1].DirectiveType);
|
Assert.Equal(TagHelperDirectiveType.AddTagHelper, descriptors[1].DirectiveType);
|
||||||
Assert.Equal(SourceLocation.Undefined, descriptors[1].Location);
|
Assert.Equal(SourceLocation.Undefined, descriptors[1].Location);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue