Class NoAutoPropertiesCustomization

Namespace: AutoFixture
Assembly: AutoFixture.dll

A customization that will turn off the auto population of properties on the target type.

public class NoAutoPropertiesCustomization : ICustomization

Inheritance

objectNoAutoPropertiesCustomization

Implements

ICustomization

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

NoAutoPropertiesCustomization(Type)

Initializes a new instance of the NoAutoPropertiesCustomization class.

public NoAutoPropertiesCustomization(Type targetType)

Parameters

targetType Type

The Type to disable auto population of properties.

Exceptions

ArgumentNullException

targetType is null.

Methods

Customize(IFixture)

Customizes the fixture by creating a _targetType that has no auto populated properties.

public void Customize(IFixture fixture)

Parameters

fixture IFixture

The fixture to customize.

Exceptions

ArgumentNullException

fixture is null.