Class TesterDoer
Provides a set of methods that can assist with the tester-doer pattern.
Inheritance
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class TesterDoer
Methods
| Improve this DocIgnoreResult<TResult, TSuccess>(TesterFunc<TResult, TSuccess>)
Returns a value that indicates whether the specified testerDoerBody
was invoked as TSuccess
.
Declaration
public static TSuccess IgnoreResult<TResult, TSuccess>(TesterFunc<TResult, TSuccess> testerDoerBody)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<TResult, TSuccess> | testerDoerBody | The tester function delegate to invoke. |
Returns
Type | Description |
---|---|
TSuccess |
|
Type Parameters
Name | Description |
---|---|
TResult | The type of the return value of the method that you explicitly have chosen to ignore. |
TSuccess | The type of the return value that indicates success of the method. |
IgnoreResult<T, TResult, TSuccess>(TesterFunc<T, TResult, TSuccess>, T)
Returns a value that indicates whether the specified testerDoerBody
was invoked as TSuccess
.
Declaration
public static TSuccess IgnoreResult<T, TResult, TSuccess>(TesterFunc<T, TResult, TSuccess> testerDoerBody, T arg)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<T, TResult, TSuccess> | testerDoerBody | The tester function delegate to invoke. |
T | arg | The first parameter of the |
Returns
Type | Description |
---|---|
TSuccess |
|
Type Parameters
Name | Description |
---|---|
T | The type of the first parameter of the method. |
TResult | The type of the return value of the method that you explicitly have chosen to ignore. |
TSuccess | The type of the return value that indicates success of the method. |
IgnoreResult<T1, T2, TResult, TSuccess>(TesterFunc<T1, T2, TResult, TSuccess>, T1, T2)
Returns a value that indicates whether the specified testerDoerBody
was invoked as TSuccess
.
Declaration
public static TSuccess IgnoreResult<T1, T2, TResult, TSuccess>(TesterFunc<T1, T2, TResult, TSuccess> testerDoerBody, T1 arg1, T2 arg2)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<T1, T2, TResult, TSuccess> | testerDoerBody | The tester function delegate to invoke. |
T1 | arg1 | The first parameter of the |
T2 | arg2 | The second parameter of the |
Returns
Type | Description |
---|---|
TSuccess |
|
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the method. |
T2 | The type of the second parameter of the method. |
TResult | The type of the return value of the method that you explicitly have chosen to ignore. |
TSuccess | The type of the return value that indicates success of the method. |
IgnoreResult<T1, T2, T3, TResult, TSuccess>(TesterFunc<T1, T2, T3, TResult, TSuccess>, T1, T2, T3)
Returns a value that indicates whether the specified testerDoerBody
was invoked as TSuccess
.
Declaration
public static TSuccess IgnoreResult<T1, T2, T3, TResult, TSuccess>(TesterFunc<T1, T2, T3, TResult, TSuccess> testerDoerBody, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<T1, T2, T3, TResult, TSuccess> | testerDoerBody | The tester function delegate to invoke. |
T1 | arg1 | The first parameter of the |
T2 | arg2 | The second parameter of the |
T3 | arg3 | The third parameter of the |
Returns
Type | Description |
---|---|
TSuccess |
|
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the method. |
T2 | The type of the second parameter of the method. |
T3 | The type of the third parameter of the method. |
TResult | The type of the return value of the method that you explicitly have chosen to ignore. |
TSuccess | The type of the return value that indicates success of the method. |
IgnoreResult<T1, T2, T3, T4, TResult, TSuccess>(TesterFunc<T1, T2, T3, T4, TResult, TSuccess>, T1, T2, T3, T4)
Returns a value that indicates whether the specified testerDoerBody
was invoked as TSuccess
.
Declaration
public static TSuccess IgnoreResult<T1, T2, T3, T4, TResult, TSuccess>(TesterFunc<T1, T2, T3, T4, TResult, TSuccess> testerDoerBody, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<T1, T2, T3, T4, TResult, TSuccess> | testerDoerBody | The tester function delegate to invoke. |
T1 | arg1 | The first parameter of the |
T2 | arg2 | The second parameter of the |
T3 | arg3 | The third parameter of the |
T4 | arg4 | The fourth parameter of the |
Returns
Type | Description |
---|---|
TSuccess |
|
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the method. |
T2 | The type of the second parameter of the method. |
T3 | The type of the third parameter of the method. |
T4 | The type of the fourth parameter of the method. |
TResult | The type of the return value of the method that you explicitly have chosen to ignore. |
TSuccess | The type of the return value that indicates success of the method. |
IgnoreResult<T1, T2, T3, T4, T5, TResult, TSuccess>(TesterFunc<T1, T2, T3, T4, T5, TResult, TSuccess>, T1, T2, T3, T4, T5)
Returns a value that indicates whether the specified testerDoerBody
was invoked as TSuccess
.
Declaration
public static TSuccess IgnoreResult<T1, T2, T3, T4, T5, TResult, TSuccess>(TesterFunc<T1, T2, T3, T4, T5, TResult, TSuccess> testerDoerBody, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type | Name | Description |
---|---|---|
TesterFunc<T1, T2, T3, T4, T5, TResult, TSuccess> | testerDoerBody | The tester function delegate to invoke. |
T1 | arg1 | The first parameter of the |
T2 | arg2 | The second parameter of the |
T3 | arg3 | The third parameter of the |
T4 | arg4 | The fourth parameter of the |
T5 | arg5 | The fifth parameter of the |
Returns
Type | Description |
---|---|
TSuccess |
|
Type Parameters
Name | Description |
---|---|
T1 | The type of the first parameter of the method. |
T2 | The type of the second parameter of the method. |
T3 | The type of the third parameter of the method. |
T4 | The type of the fourth parameter of the method. |
T5 | The type of the fifth parameter of the method. |
TResult | The type of the return value of the method that you explicitly have chosen to ignore. |
TSuccess | The type of the return value that indicates success of the method. |