-
Notifications
You must be signed in to change notification settings - Fork 158
SubstringConstraint
Charlie Poole edited this page Jan 31, 2016
·
5 revisions
SubstringConstraint tests for a substring.
```C# SubstringConstraint(string expected) ``` ```C# Does.Contain(string expected) ``` ```C# ...IgnoreCase ``` ```C# string phrase = "Make your tests fail before passing!"Assert.That( phrase, Does.Contain( "tests fail" ) ); Assert.That( phrase, Does.Not.Contain( "tests pass" ) ); Assert.That( phrase, Does.Contain( "make" ).IgnoreCase );
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