File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ public class TestRenderer : Renderer
2929 /// </summary>
3030 public StructAction < RenderBatch > ? OnRenderingHasComponentUpdates { get ; set ; }
3131
32+ /// <inheritdoc/>
33+ public override Dispatcher Dispatcher { get ; } = Dispatcher . CreateDefault ( ) ;
34+
35+ /// <summary>
36+ /// Gets a task that completes after the next render.
37+ /// </summary>
38+ public Task NextRender => _nextRenderTcs . Task ;
39+
3240 /// <inheritdoc/>
3341 public TestRenderer ( IServiceProvider serviceProvider , ILoggerFactory loggerFactory )
3442 : base ( serviceProvider , loggerFactory )
@@ -62,14 +70,6 @@ public int AttachTestRootComponent(IComponent testRootComponent)
6270 return task ;
6371 }
6472
65- /// <inheritdoc/>
66- public override Dispatcher Dispatcher { get ; } = Dispatcher . CreateDefault ( ) ;
67-
68- /// <summary>
69- /// Gets a task that completes after the next render.
70- /// </summary>
71- public Task NextRender => _nextRenderTcs . Task ;
72-
7373 /// <inheritdoc/>
7474 protected override void HandleException ( Exception exception )
7575 {
You can’t perform that action at this time.
0 commit comments