Show / Hide Table of Contents

Class BuilderBehavior.InternalStateTester<TBuilder>

Similar to BuilderBehavior.BuildTester<TBuilder, TBuilt>, but instead of testing the values of properties in the built object, it inspects the builder directly.

Inheritance
System.Object
BuilderBehavior.InternalStateTester<TBuilder>
Namespace: LaunchDarkly.TestHelpers
Assembly: LaunchDarkly.TestHelpers.dll
Syntax
public class InternalStateTester<TBuilder> : Object
Type Parameters
Name Description
TBuilder

the builder type

Remarks

Create instances of this class with For<TBuilder>(Func<TBuilder>).

Methods

New()

Creates an instance of the builder.

Declaration
public TBuilder New()
Returns
Type Description
TBuilder

a new instance

Property<TValue>(Func<TBuilder, TValue>, Action<TBuilder, TValue>)

Creates a helper for testing a specific property of the builder.

Declaration
public BuilderBehavior.IPropertyAssertions<TValue> Property<TValue>(Func<TBuilder, TValue> builderGetter, Action<TBuilder, TValue> builderSetter)
Parameters
Type Name Description
System.Func<TBuilder, TValue> builderGetter

function that gets that property from the builder's internal state

System.Action<TBuilder, TValue> builderSetter

function that sets the property in the builder

Returns
Type Description
BuilderBehavior.IPropertyAssertions<TValue>
Type Parameters
Name Description
TValue

type of the property

In This Article
Back to top Generated by DocFX