AutoFixture 2 With() isn't working as it did in AutoFixture 1?
问题 I'm porting my tests to AutoFixture 2.0, and I've run in to some strange behavior that I can neither explain nor fix. This simple test is failing for me: var autoFixtures = new Fixture(); var file = autoFixtures.Build<File>() .With(f => f.Name, "bleh.txt") .CreateAnonymous(); Assert.That(file.Name, Is.EqualTo("bleh.txt")); // Fail?! The test succeeds if I change Name to another property of File , which leads me to think that I have some sort of customization present for Name that wasn't