Compose() public method

Composes the supplied builders.
public Compose ( IEnumerable builders ) : ISpecimenBuilderNode
builders IEnumerable The builders to compose.
return ISpecimenBuilderNode
 public void ComposeReturnsCorrectResult()
 {
     // Fixture setup
     var tracer = new DelegatingTracingBuilder();
     var sut = new TerminatingWithPathSpecimenBuilder(tracer);
     // Exercise system
     var expectedBuilders = new[]
     {
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder()
     };
     var actual = sut.Compose(expectedBuilders);
     // Verify outcome
     var tw = Assert.IsAssignableFrom<TerminatingWithPathSpecimenBuilder>(actual);
     var composite = Assert.IsAssignableFrom<CompositeSpecimenBuilder>(tw.Tracer.Builder);
     Assert.True(expectedBuilders.SequenceEqual(composite));
     // Teardown
 }
 public void ComposeSingleItemReturnsCorrectResult()
 {
     // Fixture setup
     var tracer = new DelegatingTracingBuilder();
     var sut = new TerminatingWithPathSpecimenBuilder(tracer);
     // Exercise system
     var expected = new DelegatingSpecimenBuilder();
     var actual = sut.Compose(new[] { expected });
     // Verify outcome
     var tw = Assert.IsAssignableFrom<TerminatingWithPathSpecimenBuilder>(actual);
     Assert.Equal(expected, tw.Tracer.Builder);
     // Teardown
 }