Skip to content

MemberPath<TFixtureItem,TReturnType>.InstanceOf<TInstance> method

Configure the member to be a instance of a class or struct.

csharp
public MemberConfig<TFixtureItem> InstanceOf<TInstance>()
    where TInstance : TReturnType
public MemberConfig<TFixtureItem> InstanceOf<TInstance>()
    where TInstance : TReturnType
parameterdescription
TInstanceThe type of the instance.

Return Value

The MemberConfig.

See Also