Class ArrangeFnExtensions
- Namespace
- Mokkit.Arrange
- Assembly
- Mokkit.dll
Provides extension methods for arrange function delegates to enable fluent chaining of arrange operations. These extensions allow direct chaining of arrange functions without explicitly creating Mokkit.Arrange.ITestArrange instances.
public static class ArrangeFnExtensionsInheritance
Inherited Members
Methods
Then(ArrangeAsyncFn, ArrangeAsyncFn)
Chains an asynchronous arrange function with another asynchronous arrange function.
public static ITestArrange Then(this ArrangeAsyncFn arrangeFn, ArrangeAsyncFn thenFn)Parameters
arrangeFnArrangeAsyncFn-
The first asynchronous arrange function to execute.
thenFnArrangeAsyncFn-
The second asynchronous arrange function to execute after the first.
Returns
- ITestArrange
-
An Mokkit.Arrange.ITestArrange instance that will execute both functions in sequence.
Then(ArrangeAsyncFn, ArrangeFn)
Chains an asynchronous arrange function with a synchronous arrange function.
public static ITestArrange Then(this ArrangeAsyncFn arrangeFn, ArrangeFn thenFn)Parameters
arrangeFnArrangeAsyncFn-
The first asynchronous arrange function to execute.
thenFnArrangeFn-
The second synchronous arrange function to execute after the first.
Returns
- ITestArrange
-
An Mokkit.Arrange.ITestArrange instance that will execute both functions in sequence.
Then(ArrangeFn, ArrangeAsyncFn)
Chains a synchronous arrange function with an asynchronous arrange function.
public static ITestArrange Then(this ArrangeFn arrangeFn, ArrangeAsyncFn thenFn)Parameters
arrangeFnArrangeFn-
The first synchronous arrange function to execute.
thenFnArrangeAsyncFn-
The second asynchronous arrange function to execute after the first.
Returns
- ITestArrange
-
An Mokkit.Arrange.ITestArrange instance that will execute both functions in sequence.
Then(ArrangeFn, ArrangeFn)
Chains a synchronous arrange function with another synchronous arrange function.
public static ITestArrange Then(this ArrangeFn arrangeFn, ArrangeFn thenFn)Parameters
arrangeFnArrangeFn-
The first synchronous arrange function to execute.
thenFnArrangeFn-
The second synchronous arrange function to execute after the first.
Returns
- ITestArrange
-
An Mokkit.Arrange.ITestArrange instance that will execute both functions in sequence.