Skip to content

)} ,System.Int32)}

RxTest.AppBuilderTestAsync(Func) method

Defined in

Type: RxTest Namespace: ReactiveUI.Testing Assembly: ReactiveUI.Testing.dll

Applies to

net11.0, net11.0, net10.0, net10.0, net47, net471, net472, net481, net48, net471, net47, net472, net48, net481

Overloads

  1. public static Task AppBuilderTestAsync(Func<Task> testBody)

  2. public static Task AppBuilderTestAsync(Func<Task> testBody, int maxWaitMs)

1. Overload

public static Task AppBuilderTestAsync(Func<Task> testBody)

View source (opens in a new tab)

Summary: Applications the builder test asynchronous.

Parameters

NameTypeDescription
testBodyFunc (opens in a new tab)The test body.

Returns: Task (opens in a new tab) -- A Task (opens in a new tab) representing the asynchronous operation.

Exceptions

TypeCondition
System.ArgumentNullException (opens in a new tab)testBody.

2. Overload

public static Task AppBuilderTestAsync(Func<Task> testBody, int maxWaitMs)

Summary: Applications the builder test asynchronous.

Parameters

NameTypeDescription
testBodyFunc (opens in a new tab)The test body.
maxWaitMsint (opens in a new tab)The maximum wait in milliseconds for both acquiring the test gate and running the test body.

Returns: Task (opens in a new tab) -- A Task (opens in a new tab) representing the asynchronous operation.

Exceptions

TypeCondition
System.ArgumentNullException (opens in a new tab)testBody.
System.TimeoutException (opens in a new tab)The global test gate was not acquired within maxWaitMs.