public void SutYieldsInjectedArray()
        {
            var expected = new[]
            {
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder()
            };
            var sut = new ResidueCollectorNode(expected);

            Assert.True(expected.SequenceEqual(sut));
        }
        public void SutYieldsInjectedSequence()
        {
            var expected = new ISpecimenBuilder[]
            {
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder()
            }.AsEnumerable();
            var sut = new ResidueCollectorNode(expected);

            Assert.True(expected.SequenceEqual(sut));
        }
 public void ComposeReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new ResidueCollectorNode();
     // Exercise system
     var expected = new[]
     {
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder()
     };
     var actual = sut.Compose(expected);
     // Verify outcome
     var rcn = Assert.IsAssignableFrom<ResidueCollectorNode>(actual);
     Assert.True(expected.SequenceEqual(rcn));
     // Teardown
 }
 public void SutIsCompositeSpecimenBuilder()
 {
     var sut = new ResidueCollectorNode();
     Assert.IsAssignableFrom<CompositeSpecimenBuilder>(sut);
 }