Summary
Composes self Specification
with ContainsSpecification
:
Checks if string contains another string (case sensitive).
- Namespace
- FluentSpecification
- Containing Type
- Specification
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<string> Contains(this ICompositeSpecification<string> self, string expected)
Attributes
Type | Description |
---|---|
PublicAPI | |
NotNull |
Parameters
Name | Type | Description |
---|---|---|
self | I |
Self specification. |
expected | string | Expected substring. |
Return Value
Type | Description |
---|---|
I |
Composed complex Specification . |
Exceptions
Type | Description |
---|---|
System.ArgumentNullException | Thrown when self is null. |