Summary
Creates ContainsSpecification
for candidate property:
Checks if string contains another string (case sensitive).
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> Contains<T>(Expression<Func<T, string>> selector, string expected)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate. |
Parameters
Name |
Type |
Description |
selector |
Expression<Func<T, string>> |
Candidate property selector. |
expected |
string |
Expected substring. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when selector is null. |
System.ArgumentException |
Thrown when selector is not valid. |