Class TracingBehavior
Decorates an ISpecimenBuilder with a TraceWriter to enable tracing for diagnosing how the decorated builder builds up specimens.
Inheritance
System.Object
TracingBehavior
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 TracingBehavior : ISpecimenBuilderTransformation
Constructors
| Improve this Doc View SourceTracingBehavior()
Initializes a new instance of the TracingBehavior class with the default Writer, which is System.Console.Out.
Declaration
public TracingBehavior()
TracingBehavior(TextWriter)
Initializes a new instance of the TracingBehavior class with the supplied System.IO.TextWriter.
Declaration
public TracingBehavior(TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | writer | The writer to which diagnostics is written. |
Properties
| Improve this Doc View SourceWriter
Gets the writer to which diagnostics information is written.
Declaration
public TextWriter Writer { get; }
Property Value
Type | Description |
---|---|
System.IO.TextWriter |
Methods
| Improve this Doc View SourceTransform(ISpecimenBuilder)
Decorates the supplied builder with a TraceWriter.
Declaration
public ISpecimenBuilderNode Transform(ISpecimenBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The builder to transform. |
Returns
Type | Description |
---|---|
ISpecimenBuilderNode | A new TraceWriter that decorates |