Table of Contents

Class TestContextBaseRenderExtensions

Namespace
Bunit.Extensions
Assembly
Bunit.Core.dll

Extensions methods for TestContextBase types.

public static class TestContextBaseRenderExtensions
Inheritance
TestContextBaseRenderExtensions
Inherited Members

Methods

RenderInsideRenderTree(TestContextBase, RenderFragment)

Renders a fragment, declared in the renderFragment, inside the RenderTree.

public static IRenderedFragmentBase RenderInsideRenderTree(this TestContextBase testContext, RenderFragment renderFragment)

Parameters

testContext TestContextBase

Test context to use to render with.

renderFragment RenderFragment

The RenderInsideRenderTree(TestContextBase, RenderFragment) to render.

Returns

IRenderedFragmentBase

A IRenderedFragmentBase.

RenderInsideRenderTree<TComponent>(TestContextBase, RenderFragment)

Renders a component, declared in the renderFragment, inside the RenderTree.

public static IRenderedComponentBase<TComponent> RenderInsideRenderTree<TComponent>(this TestContextBase testContext, RenderFragment renderFragment) where TComponent : IComponent

Parameters

testContext TestContextBase

Test context to use to render with.

renderFragment RenderFragment

The RenderInsideRenderTree(TestContextBase, RenderFragment) that contains a declaration of the component.

Returns

IRenderedComponentBase<TComponent>

A IRenderedComponentBase<TComponent>.

Type Parameters

TComponent

The type of component to render.

.NET Foundation

Supported by the .NET Foundation.