Table of Contents

Class TestContextBaseExtensions

Namespace
Bunit.TestDoubles
Assembly
Bunit.Core.dll

Extensions related to FakePersistentComponentState.

public static class TestContextBaseExtensions
Inheritance
TestContextBaseExtensions
Inherited Members

Methods

AddFakePersistentComponentState(TestContextBase)

Adds and returns a FakePersistentComponentState to the services of the testContext.

public static FakePersistentComponentState AddFakePersistentComponentState(this TestContextBase testContext)

Parameters

testContext TestContextBase

The test context to add the FakePersistentComponentState to.

Returns

FakePersistentComponentState

The added FakePersistentComponentState.

.NET Foundation

Supported by the .NET Foundation.