Skip to content

Commit 0cb3b24

Browse files
LunicLynxegil
authored andcommitted
fix(nullable): forward nullability correctly (#1013)
* fix(nullable): forward nullability correctly * Update src/bunit.web/TestContext.cs Co-authored-by: Egil Hansen <egil@assimilated.dk> --------- Co-authored-by: Egil Hansen <egil@assimilated.dk>
1 parent d16b455 commit 0cb3b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bunit.web/TestContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public virtual IRenderedComponent<TComponent> RenderComponent<TComponent>(params
4242
/// <typeparam name="TComponent">Type of the component to render.</typeparam>
4343
/// <param name="parameterBuilder">The ComponentParameterBuilder action to add type safe parameters to pass to the component when it is rendered.</param>
4444
/// <returns>The rendered <typeparamref name="TComponent"/>.</returns>
45-
public virtual IRenderedComponent<TComponent> RenderComponent<TComponent>(Action<ComponentParameterCollectionBuilder<TComponent>> parameterBuilder)
45+
public virtual IRenderedComponent<TComponent> RenderComponent<TComponent>(Action<ComponentParameterCollectionBuilder<TComponent>>? parameterBuilder = null)
4646
where TComponent : IComponent
4747
{
4848
var renderFragment = new ComponentParameterCollectionBuilder<TComponent>(parameterBuilder)

0 commit comments

Comments
 (0)