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)); }
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); }
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); }