-
Notifications
You must be signed in to change notification settings - Fork 158
EndsWithConstraint
jnm2 edited this page Jun 14, 2017
·
7 revisions
EndsWithConstraint tests for an ending string.
EndsWithConstraint(string expected)
Does.EndWith(string expected)
EndsWith(string expected)
...IgnoreCase
string phrase = "Make your tests fail before passing!"
Assert.That(phrase, Does.EndWith("!"));
Assert.That(phrase, Does.EndWith("PASSING!").IgnoreCase);
Expect(phrase, EndsWith("!"));
- EndsWith 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