Test cleanup for component tests
This code all got dumped here during the port. This change deletes tests
that have already **moved** to the aspnet/AspNetCore repo.
Also fixed the markup rewriter tests for components.
\n\nCommit migrated from 86cc904004
This commit is contained in:
parent
74d56ce024
commit
583113686c
|
|
@ -88,19 +88,21 @@ namespace Microsoft.AspNetCore.Razor.Language
|
|||
return CreateCodeDocumentCore(sourceDocument, projectItem.FileKind, importSourceDocuments, tagHelpers: null, configureParser, configureCodeGeneration);
|
||||
}
|
||||
|
||||
protected RazorCodeDocument CreateCodeDocumentCore(
|
||||
protected internal RazorCodeDocument CreateCodeDocumentCore(
|
||||
RazorSourceDocument sourceDocument,
|
||||
string fileKind,
|
||||
IReadOnlyList<RazorSourceDocument> importSourceDocuments,
|
||||
IReadOnlyList<TagHelperDescriptor> tagHelpers,
|
||||
Action<RazorParserOptionsBuilder> configureParser,
|
||||
Action<RazorCodeGenerationOptionsBuilder> configureCodeGeneration)
|
||||
string fileKind = null,
|
||||
IReadOnlyList<RazorSourceDocument> importSourceDocuments = null,
|
||||
IReadOnlyList<TagHelperDescriptor> tagHelpers = null,
|
||||
Action<RazorParserOptionsBuilder> configureParser = null,
|
||||
Action<RazorCodeGenerationOptionsBuilder> configureCodeGeneration = null)
|
||||
{
|
||||
if (sourceDocument == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(sourceDocument));
|
||||
}
|
||||
|
||||
importSourceDocuments = importSourceDocuments ?? Array.Empty<RazorSourceDocument>();
|
||||
|
||||
var parserOptions = GetRequiredFeature<IRazorParserOptionsFactoryProjectFeature>().Create(fileKind, builder =>
|
||||
{
|
||||
ConfigureParserOptions(builder);
|
||||
|
|
|
|||
|
|
@ -348,16 +348,6 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests
|
|||
|
||||
protected static string FullTypeName<T>() => typeof(T).FullName.Replace('+', '.');
|
||||
|
||||
protected RenderTreeFrame[] GetRenderTree(IComponent component)
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
|
||||
protected RenderTreeFrame[] GetFrames(RenderFragment fragment)
|
||||
{
|
||||
throw null;
|
||||
}
|
||||
|
||||
protected static void AssertSourceEquals(string expected, CompileToCSharpResult generated)
|
||||
{
|
||||
// Normalize the paths inside the expected result to match the OS paths
|
||||
|
|
|
|||
Loading…
Reference in New Issue