Class SpecimenBuilderNode
Contains extension methods for working with ISpecimenBuilderNode instances.
Inheritance
System.Object
SpecimenBuilderNode
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.Kernel
Assembly: AutoFixture.dll
Syntax
public static class SpecimenBuilderNode
Methods
| Improve this Doc View SourceGraphEquals(ISpecimenBuilderNode, ISpecimenBuilderNode)
Determines whether two ISpecimenBuilderNode instances are define the same graph.
Declaration
public static bool GraphEquals(this ISpecimenBuilderNode first, ISpecimenBuilderNode second)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilderNode | first | |
ISpecimenBuilderNode | second |
Returns
Type | Description |
---|---|
System.Boolean |
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.
Declaration
public static bool GraphEquals(this ISpecimenBuilderNode first, ISpecimenBuilderNode second, IEqualityComparer<ISpecimenBuilder> comparer)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilderNode | first | |
ISpecimenBuilderNode | second | |
System.Collections.Generic.IEqualityComparer<ISpecimenBuilder> | comparer |
Returns
Type | Description |
---|---|
System.Boolean |
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
.