Table of Contents

Class ExecutionErrorTestCase

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

A simple implementation of IXunitTestCase that can be used to report an error rather than running a test.

public class ExecutionErrorTestCase : XunitTestCase, IXunitTestCase, ITestCase, ITestCaseMetadata, IXunitSerializable, IAsyncDisposable
Inheritance
ExecutionErrorTestCase
Implements
Inherited Members

Constructors

ExecutionErrorTestCase()

Called by the de-serializer; should only be called by deriving classes for de-serialization purposes

ExecutionErrorTestCase(IXunitTestMethod, string, string, string)

Initializes a new instance of the ExecutionErrorTestCase class.

Properties

ErrorMessage

Gets the error message that will be displayed when the test is run.

Methods

CreateTests()

Throws the expected error mesage rather than creating tests.

Deserialize(IXunitSerializationInfo)

Called when the test case should populate itself with data from the serialization info.

Serialize(IXunitSerializationInfo)

Called when the test case should store its serialized values into the serialization info.