xUnit.net
Public Member Functions | List of all members
Xunit.Sdk.MatchesException Class Reference

Exception thrown when a string does not match a regular expression. More...

Inheritance diagram for Xunit.Sdk.MatchesException:
Xunit.Sdk.XunitException

Public Member Functions

 MatchesException (object expectedRegexPattern, object actual)
 Creates a new instance of the MatchesException class. More...
 
- Public Member Functions inherited from Xunit.Sdk.XunitException
 XunitException ()
 Initializes a new instance of the XunitException class. More...
 
 XunitException (string userMessage)
 Initializes a new instance of the XunitException class. More...
 
override string ToString ()
 

Additional Inherited Members

- Protected Member Functions inherited from Xunit.Sdk.XunitException
 XunitException (string userMessage, Exception innerException)
 Initializes a new instance of the XunitException class. More...
 
 XunitException (string userMessage, string stackTrace)
 Initializes a new instance of the XunitException class. More...
 
- Properties inherited from Xunit.Sdk.XunitException
override string?? StackTrace [get]
 Gets a string representation of the frames on the call stack at the time the current exception was thrown. More...
 
string UserMessage [get, protected set]
 Gets the user message More...
 

Detailed Description

Exception thrown when a string does not match a regular expression.

Constructor & Destructor Documentation

◆ MatchesException()

Xunit.Sdk.MatchesException.MatchesException ( object  expectedRegexPattern,
object  actual 
)
inline

Creates a new instance of the MatchesException class.

Parameters
expectedRegexPatternThe expected regular expression pattern
actualThe actual value

The documentation for this class was generated from the following file: