-
Notifications
You must be signed in to change notification settings - Fork 155
RegexConstraint
Charlie Poole edited this page Jan 31, 2016
·
7 revisions
RegexConstraint tests that a pattern is matched.
```C# RegexConstraint(string pattern) ``` ```C# Does.Match(string pattern) Matches(string pattern) ``` ```C# ...IgnoreCase ``` ```C# string phrase = "Make your tests fail before passing!"Assert.That( phrase, Does.Match( "Make.*tests.*pass" ) ); Assert.That( phrase, Does.Not.Match( "your.*passing.*tests" ) ); Expect( phrase, Matches( "Make.*pass" ) );
<h4>Notes</h4>
1. <b>Matches</b> may appear only in the body of a constraint
expression or when the inherited syntax is used.
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers