public void SutContainsItemsFromConstructor()
        {
            // Arrange
            var x = new DelegatingSpecimenBuilderTransformation();
            var y = new DelegatingSpecimenBuilderTransformation();
            var z = new DelegatingSpecimenBuilderTransformation();
            // Act
            var s = new SingletonSpecimenBuilderNodeStackAdapterCollection(
                this.graph, n => n is MarkerNode, x, y, z);

            // Assert
            Assert.True(new[] { x, y, z }.SequenceEqual(s));
        }
예제 #2
0
        public void SutContainsItemsFromConstructor()
        {
            // Fixture setup
            var x = new DelegatingSpecimenBuilderTransformation();
            var y = new DelegatingSpecimenBuilderTransformation();
            var z = new DelegatingSpecimenBuilderTransformation();
            // Exercise system
            var s = new SingletonSpecimenBuilderNodeStackAdapterCollection(
                this.graph, n => n is MarkerNode, x, y, z);

            // Verify outcome
            Assert.True(new[] { x, y, z }.SequenceEqual(s));
            // Teardown
        }
 public SingletonSpecimenBuilderNodeStackAdapterCollectionTest()
 {
     this.graph = new MarkerNode(
         new CompositeSpecimenBuilder(
             new DelegatingSpecimenBuilder(),
             new DelegatingSpecimenBuilder(),
             new DelegatingSpecimenBuilder()),
         new CompositeSpecimenBuilder(new DelegatingSpecimenBuilder(),
             new DelegatingSpecimenBuilder(),
             new DelegatingSpecimenBuilder()),
         new CompositeSpecimenBuilder(new DelegatingSpecimenBuilder(),
             new DelegatingSpecimenBuilder(),
             new DelegatingSpecimenBuilder()));
     this.sut = new SingletonSpecimenBuilderNodeStackAdapterCollection(this.graph, n => n is MarkerNode);
 }
예제 #4
0
 public SingletonSpecimenBuilderNodeStackAdapterCollectionTest()
 {
     this.graph = new MarkerNode(
         new CompositeSpecimenBuilder(
             new CompositeSpecimenBuilder(
                 new DelegatingSpecimenBuilder(),
                 new DelegatingSpecimenBuilder(),
                 new DelegatingSpecimenBuilder()),
             new CompositeSpecimenBuilder(new DelegatingSpecimenBuilder(),
                                          new DelegatingSpecimenBuilder(),
                                          new DelegatingSpecimenBuilder()),
             new CompositeSpecimenBuilder(new DelegatingSpecimenBuilder(),
                                          new DelegatingSpecimenBuilder(),
                                          new DelegatingSpecimenBuilder())));
     this.sut = new SingletonSpecimenBuilderNodeStackAdapterCollection(this.graph, n => n is MarkerNode);
 }
 public void SutContainsItemsFromConstructor()
 {
     // Fixture setup
     var x = new DelegatingSpecimenBuilderTransformation();
     var y = new DelegatingSpecimenBuilderTransformation();
     var z = new DelegatingSpecimenBuilderTransformation();
     // Exercise system
     var s = new SingletonSpecimenBuilderNodeStackAdapterCollection(
         this.graph, n => n is MarkerNode, x, y, z);
     // Verify outcome
     Assert.True(new[] { x, y, z }.SequenceEqual(s));
     // Teardown
 }