Show / Hide Table of Contents

Class MatchesException

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

Inheritance
Object
XunitException
MatchesException
Inherited Members
XunitException.StackTrace
XunitException.UserMessage
XunitException.ToString()
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class MatchesException : XunitException

Constructors

| Improve this Doc View Source

MatchesException(Object, Object)

Creates a new instance of the MatchesException class.

Declaration
public MatchesException(object expectedRegexPattern, object actual)
Parameters
Type Name Description
Object expectedRegexPattern

The expected regular expression pattern

Object actual

The actual value

  • Improve this Doc
  • View Source
Back to top Generated by DocFX