Class NoAutoPropertiesCustomization
A customization that will turn off the auto population of properties on the target type.
Inheritance
System.Object
NoAutoPropertiesCustomization
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
public class NoAutoPropertiesCustomization : ICustomization
Constructors
| Improve this Doc View SourceNoAutoPropertiesCustomization(Type)
Initializes a new instance of the NoAutoPropertiesCustomization class.
Declaration
public NoAutoPropertiesCustomization(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | targetType | The System.Type to disable auto population of properties. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Methods
| Improve this Doc View SourceCustomize(IFixture)
Customizes the fixture by creating a AutoFixture.NoAutoPropertiesCustomization.targetType that has no auto populated properties.
Declaration
public void Customize(IFixture fixture)
Parameters
Type | Name | Description |
---|---|---|
IFixture | fixture | The fixture to customize. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|