Table of Contents

Class UnsetPropertyException

Namespace
Xunit.Sdk

An exception which indicates an object was not properly initialized, thrown by a property getter that was accessed by the uninitialized object.

public class UnsetPropertyException : InvalidOperationException, ISerializable
Inheritance
UnsetPropertyException
Implements
Inherited Members
Extension Methods

Constructors

UnsetPropertyException(string, Type)

An exception which indicates an object was not properly initialized, thrown by a property getter that was accessed by the uninitialized object.

public UnsetPropertyException(string propertyName, Type type)

Parameters

propertyName string

The property that was not set

type Type

The type that the property belongs to

Properties

Message

Gets a message that describes the current exception.

public override string Message { get; }

Property Value

string

The error message that explains the reason for the exception, or an empty string ("").

PropertyName

Gets the property name of the uninitialized property.

public string PropertyName { get; }

Property Value

string

TypeName

Gets the type name of the uninitialized property.

public string TypeName { get; }

Property Value

string