Class EndsWithConstraint
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
EndsWithConstraint can test whether a string ends with an expected substring.
public class EndsWithConstraint : StringConstraint, IConstraint, IResolveConstraint
- Inheritance
-
EndsWithConstraint
- Implements
- Inherited Members
Constructors
EndsWithConstraint(string)
Initializes a new instance of the EndsWithConstraint class.
public EndsWithConstraint(string expected)
Parameters
expected
stringThe expected string
Methods
Matches(string)
Test whether the constraint is matched by the actual value. This is a template method, which calls the IsMatch method of the derived class.
protected override bool Matches(string actual)
Parameters
actual
string