Skip to content

IMethodVerifier<TFixtureItem,TPathProvider,TMethodPathMember>.WhereParamIs<TParam> method (1 of 3)

Add a condition to check if a method parameter on call satisfies a certain predicate. We also generate extensions method for all parameter and advise to use them. If the parameter is called paramA then there will be a method called WhereParamA.

csharp
public IMethodVerifier WhereParamIs<TParam>(string name, Expression<Func<TParam, bool>> predicate)
public IMethodVerifier WhereParamIs<TParam>(string name, Expression<Func<TParam, bool>> predicate)
parameterdescription
TParamThe parameter type.
nameThe parameter name.
predicateThe predicate the parameter needs to satisfy.

Return Value

Self for further configuration.

See Also


IMethodVerifier<TFixtureItem,TPathProvider,TMethodPathMember>.WhereParamIs<TParam> method (2 of 3)

Add a condition to check if the method is called with a certain parameter value. The parameter value gets pulled from a dependency of this fixture. We also generate extensions method for all parameter and advise to use them. If the parameter is called paramA then there will be a method called WhereParamA.

csharp
public IMethodVerifier WhereParamIs<TParam>(string name, 
    Func<TPathProvider, IMemberPath<TFixtureItem>> selector)
public IMethodVerifier WhereParamIs<TParam>(string name, 
    Func<TPathProvider, IMemberPath<TFixtureItem>> selector)
parameterdescription
TParamThe parameter type.
nameThe parameter name.
selectorFunction for selecting a dependency.

Return Value

Self for further configuration.

See Also


IMethodVerifier<TFixtureItem,TPathProvider,TMethodPathMember>.WhereParamIs<TParam> method (3 of 3)

Add a condition to check if the method is called with a certain parameter value. We also generate extensions method for all parameter and advise to use them. If the parameter is called paramA then there will be a method called WhereParamA.

csharp
public IMethodVerifier WhereParamIs<TParam>(string name, TParam value)
public IMethodVerifier WhereParamIs<TParam>(string name, TParam value)
parameterdescription
TParamThe parameter type.
nameThe parameter name.
valueThe value expected.

Return Value

Self for further configuration.

See Also