Ejemplo n.º 1
0
        public void SutYieldsInjectedArray()
        {
            var expected = new[]
            {
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder()
            };
            var sut = new CustomizationNode(expected);

            Assert.True(expected.SequenceEqual(sut));
        }
Ejemplo n.º 2
0
        public void SutYieldsInjectedSequence()
        {
            var expected = new ISpecimenBuilder[]
            {
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder(),
                new DelegatingSpecimenBuilder()
            }.AsEnumerable();
            var sut = new CustomizationNode(expected);

            Assert.True(expected.SequenceEqual(sut));
        }
Ejemplo n.º 3
0
 public void ComposeReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new CustomizationNode();
     // Exercise system
     var expected = new[]
     {
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder(),
         new DelegatingSpecimenBuilder()
     };
     var actual = sut.Compose(expected);
     // Verify outcome
     var cn = Assert.IsAssignableFrom<CustomizationNode>(actual);
     Assert.True(expected.SequenceEqual(cn));
     // Teardown
 }
Ejemplo n.º 4
0
 public void SutIsCompositeSpecimenBuilder()
 {
     var sut = new CustomizationNode();
     Assert.IsAssignableFrom<CompositeSpecimenBuilder>(sut);
 }