Class TracingBehavior
Namespace: AutoFixture
Assembly: AutoFixture.dll
Decorates an ISpecimenBuilder with a TraceWriter to enable
tracing for diagnosing how the decorated builder builds up specimens.
public class TracingBehavior : ISpecimenBuilderTransformationInheritance
Implements
ISpecimenBuilderTransformation
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
TracingBehavior()
Initializes a new instance of the TracingBehavior class with the default
Writer, which is Out.
public TracingBehavior()TracingBehavior(TextWriter)
Initializes a new instance of the TracingBehavior class with the supplied
TextWriter.
public TracingBehavior(TextWriter writer)Parameters
writer TextWriter
The writer to which diagnostics is written.
Properties
Writer
Gets the writer to which diagnostics information is written.
public TextWriter Writer { get; }Property Value
Methods
Transform(ISpecimenBuilder)
Decorates the supplied builder with a TraceWriter.
public ISpecimenBuilderNode Transform(ISpecimenBuilder builder)Parameters
builder ISpecimenBuilder
The builder to transform.
Returns
A new TraceWriter that decorates builder using
Writer.