Class SpecimenBuilderNode

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

Contains extension methods for working with ISpecimenBuilderNode instances.

public static class SpecimenBuilderNode

Inheritance

objectSpecimenBuilderNode

Inherited Members

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

Methods

GraphEquals(ISpecimenBuilderNode, ISpecimenBuilderNode)

Determines whether two ISpecimenBuilderNode instances are define the same graph.

public static bool GraphEquals(this ISpecimenBuilderNode first, ISpecimenBuilderNode second)

Parameters

first ISpecimenBuilderNode

second ISpecimenBuilderNode

Returns

bool

Remarks

Two `ISpecimenBuilderNode` instances define the same graph if they themselves are equal to each other, and all their child nodes recursively are equal to each other.

GraphEquals(ISpecimenBuilderNode, ISpecimenBuilderNode, IEqualityComparer<ISpecimenBuilder>)

Determines whether two ISpecimenBuilderNode instances are define the same graph.

public static bool GraphEquals(this ISpecimenBuilderNode first, ISpecimenBuilderNode second, IEqualityComparer<ISpecimenBuilder> comparer)

Parameters

first ISpecimenBuilderNode

second ISpecimenBuilderNode

comparer IEqualityComparer<ISpecimenBuilder>

Returns

bool

Remarks

Two `ISpecimenBuilderNode` instances define the same graph if they themselves are equal to each other, and all their child nodes recursively are equal to each other. Equality is defined by comparer.