public void CustomizeNullFixtureThrows() { // Fixture setup var sut = new NoDataAnnotationsCustomization(); // Exercise system and verify outcome Assert.Throws<ArgumentNullException>(() => sut.Customize(null)); // Teardown }
public void CustomizeProperFixtureCorrectlyCustomizesIt(Type removedBuilderType) { // Fixture setup var fixture = new Fixture(); var sut = new NoDataAnnotationsCustomization(); // Exercise system sut.Customize(fixture); var results = fixture.Customizations .SingleOrDefault(c => c.GetType() == removedBuilderType); // Verify outcome Assert.Null(results); // Teardown }