Table of Contents

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 InspectFnExtensions

Inheritance

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

inspectFn InspectAsyncFn

The first asynchronous inspect function to execute.

thenFn InspectAsyncFn

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

inspectFn InspectAsyncFn

The first asynchronous inspect function to execute.

thenFn InspectFn

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

inspectFn InspectFn

The first synchronous inspect function to execute.

thenFn InspectAsyncFn

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

inspectFn InspectFn

The first synchronous inspect function to execute.

thenFn InspectFn

The second synchronous inspect function to execute after the first.

Returns

ITestInspect

An Mokkit.Inspect.ITestInspect instance that will execute both functions in sequence.