-
Notifications
You must be signed in to change notification settings - Fork 158
StartsWithConstraint
Charlie Poole edited this page Jan 31, 2016
·
6 revisions
StartsWithConstraint tests for an initial string.
```C# StartsWithConstraint(string expected) ``` ```C# Does.StartWith(string expected) StartsWith(string expected) ``` ```C# ...IgnoreCase ``` ```C# string phrase = "Make your tests fail before passing!"Assert.That( phrase, Does.StartWith( "Make" ) ); Assert.That( phrase, Does.Not.StartWith( "Break" ) ); Expect( phrase, StartsWith( "Make" ) );
<h4>Notes</h4>
1. **StartsWith** 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