public void FromQuadrupleParameterFactoryReturnsCorrectResult()
        {
            // Arrange
            var sut = new NullComposer <object>();
            // Act
            var result = sut.FromFactory((object x, object y, object z, object æ) => new object());

            // Assert
            Assert.Same(sut, result);
        }
        public void FromFactoryReturnsCorrectResult()
        {
            // Arrange
            var sut = new NullComposer <object>();
            // Act
            var result = sut.FromFactory(() => new object());

            // Assert
            Assert.Same(sut, result);
        }
        public void FromBuilderFactoryReturnsCorrectResult()
        {
            // Arrange
            var sut = new NullComposer <Version>();
            // Act
            var dummyFactory = new DelegatingSpecimenBuilder();
            var result       = sut.FromFactory(dummyFactory);

            // Assert
            Assert.Same(sut, result);
        }
Esempio n. 4
0
        public void FromQuadrupleParameterFactoryReturnsCorrectResult()
        {
            // Fixture setup
            var sut = new NullComposer <object>();
            // Exercise system
            var result = sut.FromFactory((object x, object y, object z, object æ) => new object());

            // Verify outcome
            Assert.Same(sut, result);
            // Teardown
        }
Esempio n. 5
0
        public void FromBuilderFactoryReturnsCorrectResult()
        {
            // Fixture setup
            var sut = new NullComposer <Version>();
            // Exercise system
            var dummyFactory = new DelegatingSpecimenBuilder();
            var result       = sut.FromFactory(dummyFactory);

            // Verify outcome
            Assert.Same(sut, result);
            // Teardown
        }
Esempio n. 6
0
 public void FromBuilderFactoryReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new NullComposer<Version>();
     // Exercise system
     var dummyFactory = new DelegatingSpecimenBuilder();
     var result = sut.FromFactory(dummyFactory);
     // Verify outcome
     Assert.Same(sut, result);
     // Teardown
 }
Esempio n. 7
0
 public void FromQuadrupleParameterFactoryReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new NullComposer<object>();
     // Exercise system
     var result = sut.FromFactory((object x, object y, object z, object æ) => new object());
     // Verify outcome
     Assert.Same(sut, result);
     // Teardown
 }