Specification.

NotMatch(ICompositeSpecification<string>, string, RegexOptions) Method

Summary

Composes self Specification with MatchSpecification negation:

Checks if string candidate not match a given Regex pattern.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<string> NotMatch(this ICompositeSpecification<string> self, string pattern, RegexOptions options = null)

Attributes

Type Description
PublicAPI
NotNull

Parameters

Name Type Description
self ICompositeSpecification<string> Self specification.
pattern string Regex pattern.
options RegexOptions Regex matching options.

Return Value

Type Description
IComplexSpecification<string> Composed complex Specification.

Exceptions

Type Description
System.ArgumentNullException Thrown when self is null.
System.ArgumentException Thrown when pattern is null or empty.
GitHub