Class ConstructorInitializedMemberException

Namespace: AutoFixture.Idioms
Assembly: AutoFixture.Idioms.dll

Represents a verification error when testing whether a read-only property is correctly implemented.

public class ConstructorInitializedMemberException : Exception, ISerializable

Inheritance

objectExceptionConstructorInitializedMemberException

Implements

ISerializable

Inherited Members

Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, Exception.SerializeObjectState, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ConstructorInitializedMemberException(ConstructorInfo, ParameterInfo)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(ConstructorInfo constructorInfo, ParameterInfo missingParameter)

Parameters

constructorInfo ConstructorInfo

The Constructor.

missingParameter ParameterInfo

The parameter that was not exposed as a field or property.

ConstructorInitializedMemberException(ConstructorInfo, ParameterInfo, string)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(ConstructorInfo constructorInfo, ParameterInfo missingParameter, string message)

Parameters

constructorInfo ConstructorInfo

The Constructor.

missingParameter ParameterInfo

The parameter that was not exposed as a field or property.

message string

The error message that explains the reason for the exception.

ConstructorInitializedMemberException(ConstructorInfo, ParameterInfo, string, Exception)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(ConstructorInfo constructorInfo, ParameterInfo missingParameter, string message, Exception innerException)

Parameters

constructorInfo ConstructorInfo

The Constructor.

missingParameter ParameterInfo

The parameter that was not exposed as a field or property.

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.

ConstructorInitializedMemberException(FieldInfo)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(FieldInfo fieldInfo)

Parameters

fieldInfo FieldInfo

The field.

ConstructorInitializedMemberException(FieldInfo, string)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(FieldInfo fieldInfo, string message)

Parameters

fieldInfo FieldInfo

The field.

message string

The error message that explains the reason for the exception.

ConstructorInitializedMemberException(FieldInfo, string, Exception)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(FieldInfo fieldInfo, string message, Exception innerException)

Parameters

fieldInfo FieldInfo

The field.

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.

ConstructorInitializedMemberException(PropertyInfo)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(PropertyInfo propertyInfo)

Parameters

propertyInfo PropertyInfo

The property.

ConstructorInitializedMemberException(PropertyInfo, string)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(PropertyInfo propertyInfo, string message)

Parameters

propertyInfo PropertyInfo

The property.

message string

The error message that explains the reason for the exception.

ConstructorInitializedMemberException(PropertyInfo, string, Exception)

Initializes a new instance of the ConstructorInitializedMemberException class.

public ConstructorInitializedMemberException(PropertyInfo propertyInfo, string message, Exception innerException)

Parameters

propertyInfo PropertyInfo

The property.

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.

Properties

ConstructorInfo

Gets the constructor which has a MissingParameter.

public ConstructorInfo ConstructorInfo { get; }

Property Value

ConstructorInfo

FieldInfo

Gets the property supplied via the constructor.

public FieldInfo FieldInfo { get; }

Property Value

FieldInfo

MemberInfo

Gets the property or field supplied via the constructor.

public MemberInfo MemberInfo { get; }

Property Value

MemberInfo

MissingParameter

Gets the parameter that was not exposed as a field or property.

public ParameterInfo MissingParameter { get; }

Property Value

ParameterInfo

PropertyInfo

Gets the property supplied via the constructor.

public PropertyInfo PropertyInfo { get; }

Property Value

PropertyInfo