33using System . Runtime . CompilerServices ;
44using System . Text ;
55using System . Threading . Tasks ;
6+ using AngleSharp . Dom ;
67using Egil . RazorComponents . Testing . Asserting ;
78using Egil . RazorComponents . Testing . Diffing ;
89using Microsoft . AspNetCore . Components ;
@@ -33,10 +34,6 @@ public override TestServiceProvider Services
3334 public override TestRenderer Renderer
3435 => _testContextAdapter . HasActiveContext ? _testContextAdapter . Renderer : base . Renderer ;
3536
36- /// <inheritdoc/>
37- public override TestHtmlParser HtmlParser
38- => _testContextAdapter . HasActiveContext ? _testContextAdapter . HtmlParser : base . HtmlParser ;
39-
4037 /// <inheritdoc/>
4138 public TestComponentBase ( )
4239 {
@@ -61,7 +58,7 @@ public async Task RazorTest()
6158 await ExecuteFixtureTests ( container ) . ConfigureAwait ( false ) ;
6259 ExecuteSnapshotTests ( container ) ;
6360 }
64-
61+
6562 /// <inheritdoc/>
6663 public IRenderedFragment GetComponentUnderTest ( )
6764 => _testContextAdapter . GetComponentUnderTest ( ) ;
@@ -78,6 +75,12 @@ public IRenderedFragment GetFragment(string? id = null)
7875 public IRenderedComponent < TComponent > GetFragment < TComponent > ( string ? id = null ) where TComponent : class , IComponent
7976 => _testContextAdapter . GetFragment < TComponent > ( id ) ;
8077
78+ /// <inheritdoc/>
79+ public override INodeList CreateNodes ( string markup )
80+ => _testContextAdapter . HasActiveContext
81+ ? _testContextAdapter . CreateNodes ( markup )
82+ : base . CreateNodes ( markup ) ;
83+
8184 /// <inheritdoc/>
8285 public override IRenderedComponent < TComponent > RenderComponent < TComponent > ( params ComponentParameter [ ] parameters )
8386 => _testContextAdapter . HasActiveContext
0 commit comments