Table of Contents

Class EndsWithException

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

Exception thrown when Assert.EndsWith fails.

public class EndsWithException : XunitException, ISerializable, IAssertionException
Inheritance
EndsWithException
Implements
Inherited Members

Methods

ForStringNotFound(string?, string?)

Creates an instance of the EndsWithException class to be thrown when a string does not end with the given value.

public static EndsWithException ForStringNotFound(string? expected, string? actual)

Parameters

expected string

The expected ending

actual string

The actual value

Returns

EndsWithException