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
.
public IMethodVerifier WhereParamIs<TParam>(string name, Expression<Func<TParam, bool>> predicate)
public IMethodVerifier WhereParamIs<TParam>(string name, Expression<Func<TParam, bool>> predicate)
parameter | description |
---|---|
TParam | The parameter type. |
name | The parameter name. |
predicate | The predicate the parameter needs to satisfy. |
Return Value
Self for further configuration.
See Also
- interface IMethodVerifier<TFixtureItem,TPathProvider,TMethodPathMember>
- namespace Twizzar.Fixture
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
.
public IMethodVerifier WhereParamIs<TParam>(string name,
Func<TPathProvider, IMemberPath<TFixtureItem>> selector)
public IMethodVerifier WhereParamIs<TParam>(string name,
Func<TPathProvider, IMemberPath<TFixtureItem>> selector)
parameter | description |
---|---|
TParam | The parameter type. |
name | The parameter name. |
selector | Function for selecting a dependency. |
Return Value
Self for further configuration.
See Also
- interface IMethodVerifier<TFixtureItem,TPathProvider,TMethodPathMember>
- namespace Twizzar.Fixture
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
.
public IMethodVerifier WhereParamIs<TParam>(string name, TParam value)
public IMethodVerifier WhereParamIs<TParam>(string name, TParam value)
parameter | description |
---|---|
TParam | The parameter type. |
name | The parameter name. |
value | The value expected. |
Return Value
Self for further configuration.
See Also
- interface IMethodVerifier<TFixtureItem,TPathProvider,TMethodPathMember>
- namespace Twizzar.Fixture