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
TestContextBaseTest context to use to render with.
renderFragment
RenderFragmentThe RenderInsideRenderTree(TestContextBase, RenderFragment) to render.
Returns
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
TestContextBaseTest context to use to render with.
renderFragment
RenderFragmentThe RenderInsideRenderTree(TestContextBase, RenderFragment) that contains a declaration of the component.
Returns
- IRenderedComponentBase<TComponent>
Type Parameters
TComponent
The type of component to render.