Class InspectFnExtensions
- Namespace
- Mokkit.Inspect
- Assembly
- Mokkit.dll
Provides extension methods for inspect function delegates to enable fluent chaining of inspect operations. These extensions allow direct chaining of inspect functions without explicitly creating Mokkit.Inspect.ITestInspect instances.
public static class InspectFnExtensionsInheritance
Inherited Members
Methods
Then(InspectAsyncFn, InspectAsyncFn)
Chains an asynchronous inspect function with another asynchronous inspect function.
public static ITestInspect Then(this InspectAsyncFn inspectFn, InspectAsyncFn thenFn)Parameters
inspectFnInspectAsyncFn-
The first asynchronous inspect function to execute.
thenFnInspectAsyncFn-
The second asynchronous inspect function to execute after the first.
Returns
- ITestInspect
-
An Mokkit.Inspect.ITestInspect instance that will execute both functions in sequence.
Then(InspectAsyncFn, InspectFn)
Chains an asynchronous inspect function with a synchronous inspect function.
public static ITestInspect Then(this InspectAsyncFn inspectFn, InspectFn thenFn)Parameters
inspectFnInspectAsyncFn-
The first asynchronous inspect function to execute.
thenFnInspectFn-
The second synchronous inspect function to execute after the first.
Returns
- ITestInspect
-
An Mokkit.Inspect.ITestInspect instance that will execute both functions in sequence.
Then(InspectFn, InspectAsyncFn)
Chains a synchronous inspect function with an asynchronous inspect function.
public static ITestInspect Then(this InspectFn inspectFn, InspectAsyncFn thenFn)Parameters
inspectFnInspectFn-
The first synchronous inspect function to execute.
thenFnInspectAsyncFn-
The second asynchronous inspect function to execute after the first.
Returns
- ITestInspect
-
An Mokkit.Inspect.ITestInspect instance that will execute both functions in sequence.
Then(InspectFn, InspectFn)
Chains a synchronous inspect function with another synchronous inspect function.
public static ITestInspect Then(this InspectFn inspectFn, InspectFn thenFn)Parameters
inspectFnInspectFn-
The first synchronous inspect function to execute.
thenFnInspectFn-
The second synchronous inspect function to execute after the first.
Returns
- ITestInspect
-
An Mokkit.Inspect.ITestInspect instance that will execute both functions in sequence.