public MatchText ( string text, System.StringComparison comparisonType = StringComparison.OrdinalIgnoreCase ) : bool | ||
text | string | The string that must match. Can not be null nor empty. |
comparisonType | System.StringComparison | Specifies the culture, case, and sort rules. |
return | bool |
public void match_methods_must_set_an_error() { var m = new StringMatcher( "A" ); DateTimeStamp ts; CheckMatchError( m, () => m.MatchDateTimeStamp( out ts ) ); DateTime dt; CheckMatchError( m, () => m.MatchFileNameUniqueTimeUtcFormat( out dt ) ); CheckMatchError( m, () => m.MatchText( "B" ) ); }