Represents a customization to support CustomizeAttribute(s).
Inheritance: ICustomization
        public void CustomizeCorrectlyCustomizesFixture()
        {
            var parameters = new Methods<ParameterCustomizationTest>()
                .Select(x => x.TestMethod(null, null))
                .GetParameters();
            var sut = new ParameterCustomization(parameters);
            var fixture = new Fixture();

            sut.Customize(fixture);

            Assert.Equal(fixture.Create<object>(), fixture.Create<object>());
            Assert.NotNull(fixture.Create<Person>().Name);
        }
 public void SutIsCustomization()
 {
     var sut = new ParameterCustomization(Mocked.Of<IEnumerable<ParameterInfo>>());
     Assert.IsAssignableFrom<ICustomization>(sut);
 }
 public void InitializeCorrectlyInitializesProperties()
 {
     var parameters = Mocked.Of<IEnumerable<ParameterInfo>>();
     var sut = new ParameterCustomization(parameters);
     Assert.Equal(parameters, sut.Parameters);
 }
 public void CustomizeWitNullFixtureThrows()
 {
     var sut = new ParameterCustomization(Mocked.Of<IEnumerable<ParameterInfo>>());
     Assert.Throws<ArgumentNullException>(() => sut.Customize(null));
 }