RxTest.AppBuilderTestAsync(Func) method¶
Defined in
Type: RxTest
Namespace: ReactiveUI.Testing
Assembly: ReactiveUI.Testing.dll
Applies to
net10.0, net10.0, net9.0, net9.0, net8.0, net8.0, net462, net481, net462, net481
Overloads¶
-
public static Task AppBuilderTestAsync(Func<Task> testBody) -
public static Task AppBuilderTestAsync(Func<Task> testBody, int maxWaitMs)
1. Overload¶
public static Task AppBuilderTestAsync(Func<Task> testBody)
Summary: Applications the builder test asynchronous.
Parameters
| Name | Type | Description |
|---|---|---|
testBody | Func | The test body. |
Returns: Task -- A Task representing the asynchronous operation.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | testBody. |
2. Overload¶
public static Task AppBuilderTestAsync(Func<Task> testBody, int maxWaitMs)
Summary: Applications the builder test asynchronous.
Parameters
| Name | Type | Description |
|---|---|---|
testBody | Func | The test body. |
maxWaitMs | int | The maximum wait in milliseconds for both acquiring the test gate and running the test body. |
Returns: Task -- A Task representing the asynchronous operation.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | testBody. |
| System.TimeoutException | The global test gate was not acquired within maxWaitMs. |