Class CopyAndUpdateException

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

Represents an error about a method that incorrectly implements the idiom tested by the CopyAndUpdateAssertion.

public class CopyAndUpdateException : Exception, ISerializable

Inheritance

objectExceptionCopyAndUpdateException

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

CopyAndUpdateException()

Initializes a new instance of the CopyAndUpdateException class.

public CopyAndUpdateException()

CopyAndUpdateException(string, MethodInfo)

Initializes a new instance of the CopyAndUpdateException class.

public CopyAndUpdateException(string message, MethodInfo methodInfo)

Parameters

message string

The error message that explains the reason for the exception.

methodInfo MethodInfo

The 'copy and update' method which was ill-behaved.

CopyAndUpdateException(MethodInfo, MemberInfo)

Initializes a new instance of the CopyAndUpdateException class.

public CopyAndUpdateException(MethodInfo methodInfo, MemberInfo memberWithInvalidValue)

Parameters

methodInfo MethodInfo

The 'copy and update' method which was ill-behaved.

memberWithInvalidValue MemberInfo

The member which has the invalid value after copy and update.

CopyAndUpdateException(MethodInfo, ParameterInfo)

Initializes a new instance of the CopyAndUpdateException class.

public CopyAndUpdateException(MethodInfo methodInfo, ParameterInfo argumentWithNoMatchingPublicMember)

Parameters

methodInfo MethodInfo

The 'copy and update' method which was ill-behaved.

argumentWithNoMatchingPublicMember ParameterInfo

The parameter which has no matching public member.

CopyAndUpdateException(string)

Initializes a new instance of the CopyAndUpdateException class.

public CopyAndUpdateException(string message)

Parameters

message string

The error message that explains the reason for the exception.

CopyAndUpdateException(string, Exception)

Initializes a new instance of the CopyAndUpdateException class.

public CopyAndUpdateException(string message, Exception innerException)

Parameters

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

ArgumentWithNoMatchingPublicMember

Gets the argument of the 'copy and update' method for which no matching public member could be found.

public ParameterInfo ArgumentWithNoMatchingPublicMember { get; set; }

Property Value

ParameterInfo

MemberWithInvalidValue

Gets the member which was found to have an incorrect value.

public MemberInfo MemberWithInvalidValue { get; }

Property Value

MemberInfo

MethodInfo

Gets the 'copy and update' method which is ill-behaved.

public MethodInfo MethodInfo { get; }

Property Value

MethodInfo