public void LegacyComposeReturnsCorrectResult()
        {
            // Arrange
            var dummyNode = new CompositeSpecimenBuilder();
            var sut       = new CompositeNodeComposer <UTF8Encoding>(dummyNode);
            // Act
            var actual = sut.Compose();

            // Assert
            Assert.Equal(sut, actual);
        }
        public void LegacyComposeReturnsCorrectResult()
        {
            // Fixture setup
            var dummyNode = new CompositeSpecimenBuilder();
            var sut       = new CompositeNodeComposer <UTF8Encoding>(dummyNode);
            // Exercise system
            var actual = sut.Compose();

            // Verify outcome
            Assert.Equal(sut, actual);
            // Teardown
        }
        public void ComposeSingleNodeReturnsCorrectResult()
        {
            // Arrange
            var dummyNode = new CompositeSpecimenBuilder();
            var sut       = new CompositeNodeComposer <uint>(dummyNode);
            ISpecimenBuilderNode expected = new CompositeSpecimenBuilder();
            // Act
            var actual = sut.Compose(new[] { expected });
            // Assert
            var c =
                Assert.IsAssignableFrom <CompositeNodeComposer <uint> >(actual);

            Assert.Equal(expected, c.Node);
        }
 public void ComposeSingleNodeReturnsCorrectResult()
 {            
     // Fixture setup
     var dummyNode = new CompositeSpecimenBuilder();
     var sut = new CompositeNodeComposer<uint>(dummyNode);
     ISpecimenBuilderNode expected = new CompositeSpecimenBuilder();
     // Exercise system
     var actual = sut.Compose(new[] { expected });
     // Verify outcome
     var c =
         Assert.IsAssignableFrom<CompositeNodeComposer<uint>>(actual);
     Assert.Equal(expected, c.Node);
     // Teardown
 }
        public void ComposeSingleNodeReturnsCorrectResult()
        {
            // Fixture setup
            var dummyNode = new CompositeSpecimenBuilder();
            var sut       = new CompositeNodeComposer <uint>(dummyNode);
            ISpecimenBuilderNode expected = new CompositeSpecimenBuilder();
            // Exercise system
            var actual = sut.Compose(new[] { expected });
            // Verify outcome
            var c =
                Assert.IsAssignableFrom <CompositeNodeComposer <uint> >(actual);

            Assert.Equal(expected, c.Node);
            // Teardown
        }
        public void ComposeReturnsCorrectResult()
        {
            // Arrange
            var dummyNode = new CompositeSpecimenBuilder();
            var sut       = new CompositeNodeComposer <uint>(dummyNode);
            // Act
            var expectedBuilders = new[]
            {
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder()
            };
            var actual = sut.Compose(expectedBuilders);
            // Assert
            var c =
                Assert.IsAssignableFrom <CompositeNodeComposer <uint> >(actual);
            var composite =
                Assert.IsAssignableFrom <CompositeSpecimenBuilder>(c.Node);

            Assert.True(expectedBuilders.SequenceEqual(composite));
        }
 public void ComposeReturnsCorrectResult()
 {
     // Fixture setup
     var dummyNode = new CompositeSpecimenBuilder();
     var sut = new CompositeNodeComposer<uint>(dummyNode);
     // Exercise system
     var expectedBuilders = new[]
     {
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder()
     };
     var actual = sut.Compose(expectedBuilders);
     // Verify outcome
     var c =
         Assert.IsAssignableFrom<CompositeNodeComposer<uint>>(actual);
     var composite = 
         Assert.IsAssignableFrom<CompositeSpecimenBuilder>(c.Node);
     Assert.True(expectedBuilders.SequenceEqual(composite));
     // Teardown
 }
        public void ComposeReturnsCorrectResult()
        {
            // Fixture setup
            var dummyNode = new CompositeSpecimenBuilder();
            var sut       = new CompositeNodeComposer <uint>(dummyNode);
            // Exercise system
            var expectedBuilders = new[]
            {
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder()
            };
            var actual = sut.Compose(expectedBuilders);
            // Verify outcome
            var c =
                Assert.IsAssignableFrom <CompositeNodeComposer <uint> >(actual);
            var composite =
                Assert.IsAssignableFrom <CompositeSpecimenBuilder>(c.Node);

            Assert.True(expectedBuilders.SequenceEqual(composite));
            // Teardown
        }
 public void LegacyComposeReturnsCorrectResult()
 {
     // Fixture setup
     var dummyNode = new CompositeSpecimenBuilder();
     var sut = new CompositeNodeComposer<UTF8Encoding>(dummyNode);
     // Exercise system
     var actual = sut.Compose();
     // Verify outcome
     Assert.Equal(sut, actual);
     // Teardown
 }