public void CustomizeNullFixtureThrows()
        {
            // Arrange
            var sut = new MapCreateManyToEnumerable();

            // Act & assert
            Assert.Throws <ArgumentNullException>(() => sut.Customize(null));
        }
        public void CustomizeNullFixtureThrows()
        {
            // Fixture setup
            var sut = new MapCreateManyToEnumerable();

            // Exercise system and verify outcome
            Assert.Throws <ArgumentNullException>(() => sut.Customize(null));
            // Teardown
        }
        public void CustomizeAddsCorrectSpecimenBuilderToFixture()
        {
            // Arrange
            var sut     = new MapCreateManyToEnumerable();
            var fixture = new Fixture();

            // Act
            sut.Customize(fixture);
            // Assert
            Assert.True(
                fixture.Customizations.OfType <MultipleToEnumerableRelay>().Any(),
                "Appropriate SpecimenBuilder should be added to Fixture.");
        }
        public void CustomizeAddsCorrectSpecimenBuilderToFixture()
        {
            // Fixture setup
            var sut     = new MapCreateManyToEnumerable();
            var fixture = new Fixture();

            // Exercise system
            sut.Customize(fixture);
            // Verify outcome
            Assert.True(
                fixture.Customizations.OfType <MultipleToEnumerableRelay>().Any(),
                "Appropriate SpecimenBuilder should be added to Fixture.");
            // Teardown
        }